fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int first,second,temp;
  5. printf("please enter first number: ");
  6. scanf("%d",&first);
  7. printf("Now enter the second number: ");
  8. scanf("%d",&second);
  9. temp=first;
  10. first=second;
  11. second=temp;
  12. printf("the first number is %d and second number is %d",first,second);
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
please enter first number: Now enter the second number: the first number is 32767 and second number is -391955472