- 2
Rewrite as while , do while and for loop
i=2; start: cout <<i; i+=2; if (i <51)goto start; cout <<"thank you ";
1 Réponse
+ 2
i=2
while(i<51)
{ cout<<i; i+=2;}
cout<<"Thank you";
for(i=2; i<51; i++)
cout<< i;
cout<<"Thank you";
do
{cout<<i; i+=2;)
while(i<51);