Computer Science, asked by abdullazam4772, 1 year ago

24. Write the equivalent do-while loop for the following
program code:
int n=40;
for{ int y =10; y >=2; y - )
n++​

Answers

Answered by Anonymous
1

Explanation:

So, here comes the while loop. #include < stdio.h> int main() { int a = 1; while ( a <= 10 ) { printf ( "Hello World\n" ); a ++; } return 0; }.

Answered by srajfaroquee
3

Answer:

int n = 40 , y= 10;

do {

 n++ ;

 y -- ;

}while( y>=2 ) ;

If you have doubt then let me know and I will try to clarify your doubts.

Please follow me and mark this ans as Branliest answer.Thank you!

Similar questions