Answers for "Write a program to calculate the sum of integer numbers using flag-controlled while loop. Program should be keep executing as long as the user input the odd numbers, and terminate as the user input an even number."

C++
1

do while loop c++ loops continuously

//vars
int A; //any variable will do

// loop
do {
  A = 0; // clearing last input from last looping
  cout << "request value for A";
  cin >> A;
  
}
while (A != 'any value other than zero');
Posted by: Guest on October-15-2020

Code answers related to "Write a program to calculate the sum of integer numbers using flag-controlled while loop. Program should be keep executing as long as the user input the odd numbers, and terminate as the user input an even number."

Browse Popular Code Answers by Language