Prove following program will fall into infinite loop for input 429.
#include<stdio.h>
main()
{ int p,q;
scanf("%d",&p);
q=p;
do
{ q=q-2;
}while(q!=82);
printf("K\n");
}
Answers
Answered by
0
Answer:
Explanation:
429.
#include<stdio.h>
main()
{ int p,q;
scanf("%d",&p);
q=p;
do
{ q=q-2;
}while(q!=82);
printf("K\n");
}
java script loop then in the end put yoyo command which makes it loop
Similar questions
Computer Science,
1 month ago
Computer Science,
3 months ago
Physics,
3 months ago
Math,
9 months ago
Biology,
9 months ago