Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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');
 
PREVIOUS NEXT
Tagged: #loop #loops #continuously
ADD COMMENT
Topic
Name
5+9 =