while until c++
do
{
// whatever
} while ( !condition );
c++ while loop
while (test_expression)
{
// statements
update_expression;
}
While loop in c++
while (x != 0){ ... }
While loop in c++
while (x){ ... }
do while c++
#include <iostream>
#include <string>
using namespace std;
int main()
{
cout<<"Printing 2's multiples less than 20"<<endl;
int i=2;
do
{
cout<<"i = "<<i<<"\t";
i += 2;
}while(i<=20);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us