📜  do while loop c++ 不断循环 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:53.559000             🧑  作者: Mango

代码示例1
//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');