What will be printed when the following program is executed with 75 and 35 as the keyboard
inputs? What does the program compute?
#include <stdio.h> 
main(){ 
int x, int y ; 
printf(“Enter two numbers: “ ) ; 
scanf(“%d%d”, &x, &y); 
while(x!=y){ 
if(x>y) x-=y; 
else y-=x; 
printf(“x=%d y=%d\n”,x,y); 
printf("%d\n",x);

Posted on by