Answers for "examples of while loop c++"

C++
2

c++ while loop

while (true) {
  cout << "hello" << endl;
}
Posted by: Guest on November-17-2021
0

c++ while

int i = 0;
while (i < 5) {
  cout << i << "\n";
  i++;
}
Posted by: Guest on October-13-2021
0

do while c++

do {
  // code block to be executed
}
while (condition);
Posted by: Guest on October-28-2021

Browse Popular Code Answers by Language