- 1
#include <iostream> using namespace std; int main() { int num = 1; int number; int total = 0; while (num <= 5)
Tell ne how this program works
2 ответов
+ 1
Your program is not finished.
0
You should increment num in the while loop so that it loops for limited time and execute whatever you want inside loop num += 1 for example and total += num then you can use cout to display the total variable value .