fork download
  1.  
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6. int x,y;
  7. printf("enter two numbers:");
  8. scanf("%d %d",&x,&y);
  9. while(y!=0)
  10. {
  11. x++;
  12. y--;
  13. }
  14. printf("sum of two values is %d",&x);
  15. return 0;
  16. }
  17.  
  18.  
Success #stdin #stdout 0s 5360KB
stdin
 
stdout
enter two numbers:sum of two values is -1644101984