+ 2
How to write five times 5 in while loop?
6 Answers
+ 5
int x = 0;
while (x! = 5)
{
cout << "five times 5" << endl;
x++;
}
+ 2
int i=0;
const int f=5;
while (i<5) {
cout<<f;
i++;
}
+ 1
int x=1;
while(x<=5)
{ cout<<"5"<<endl;
x++;
}
+ 1
int n=0;
{
while(n<5)
n++;
printf("%d";n);
}
0
for (int i=0;i <5;i++)
cout <<5;
0
for next line add
printf("\n%d";n);