Computer Science, asked by kumarrohit442000, 3 months ago

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 ivycuber00
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