How can i solve programming problems ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How can i solve programming problems ?

2nd May 2019, 6:09 PM
[No Name]
[No Name] - avatar
6 Answers
+ 2
First break it into steps such as what you want. For example to print the sum of two inputted numbers 1 display a prompt asking user for numbers 2 take input 3 sum the numbers 4 display the numbers and their result Then start coding it using sudo code: count <<prompt; cin << num1<<num2 Sum = num1 + num2 cout <<"the sum of ... Then using the sudo code write the actual code using declarations such as int num1. N
2nd May 2019, 7:22 PM
Hothouseinwar Polik
Hothouseinwar Polik - avatar
+ 4
You divide a problem into smaller probpems until you can solve those. If you cant break it down and still cant solve it you have to ask more experienced programmers.
2nd May 2019, 6:17 PM
Dragonxiv
Dragonxiv - avatar
+ 1
Can i solve a programming problem without an algorithm, or it's necessary ?
2nd May 2019, 6:20 PM
[No Name]
[No Name] - avatar
+ 1
Every programm is an algorithm. Or how would you define algorithm?
2nd May 2019, 6:25 PM
Dragonxiv
Dragonxiv - avatar
+ 1
If breaking it down isn't working, you can search StackOverflow.com for a solution to a similar problem.
2nd May 2019, 6:29 PM
Nic!
Nic! - avatar
+ 1
I mean by solving with an algorithm : writing a pseudocode which contains the steps of the solution, and then converting it into the desired programming language Dragonxiv
2nd May 2019, 6:31 PM
[No Name]
[No Name] - avatar