top of page
while rotation statement 

It is a statement that acts like an if statement, but it doesBy repetition
{What happens in the event of repetition} (condition)while

#include<iostream>//We start by placing the libraries
using namespace std;//We start by placing the libraries
int main(){//main function
int repeat=0;//The computer starts counting from zero, not one
//We declared a variable with a value of zero so that we could repeat the statement 7 times
while(repeat<7){// If the count is still less than 7 times, do the following
cout<<"hello friend"<<endl;// Print 7 times
repeat++;}// Increment the iteration counter until the condition expires
return 0;
}

image.png
bottom of page