Help me to draw flowchart to find sum of all odf no. from 1 to 100
Asked
Active
Viewed 1,571 times
-3
-
2[How to draw flowcharts](https://www.youtube.com/watch?v=SWRDqTx8d4k). – Eljay Feb 26 '22 at 13:36
-
If you have a problem with the algorithm think about how you would calculate this sum given a pen and piece of paper if someone was calling out numbers 1 by 1. – drescherjm Feb 26 '22 at 16:27
1 Answers
0
You can use a loop to keep track of this period and decide if every digit %2 leftovers then it is an odd number , you can make a variable initialized by zero outside this loop, then you will use it inside the loop to sum all ood numbers produced from the if statement.
I suggest googling the problem on your own, it is more useful for you than my explanation

Norhan Hassan
- 1
- 1