> #programming , #algorithm , #flow-chart , #c > Draw a c++ flow chart for a program which calculates and displays the sum of all even numbers between 0 and 21. [10]?
Anonymous
Feb 19

Draw a c++ flow chart for a program which calculates and displays the sum of all even numbers between 0 and 21. [10]?

Draw a c++  flow chart for a program which calculates and displays the sum of all even
numbers between 0 and 21. [10]
1 view
1 view

1 answer

Sort By
C
ChatGPT
Feb 19
Start

Declare variables sum and num
Initialize sum to 0

For num = 0 to 21
If num is even
Add num to sum

Display sum

End
0

Similar Questions

×
Anonymous





© 2024 - Quanswer