fork download
  1. #include <stdio.h>
  2. main()
  3. {
  4. printf("Program by Sirawut Patchoo\n");
  5. int num1=0,num2=0,sum=0;
  6.  
  7. printf("Enter number1-->");
  8. scanf("%d,&num1");
  9. printf("Enter number2-->");
  10. scanf("%d,&num2");
  11.  
  12. sum = num1+num2;
  13.  
  14. printf("Answer = %d",sum);
  15. printf("Answer = %d",sum);
  16. }
Success #stdin #stdout 0.02s 26044KB
stdin
Standard input is empty
stdout
#include <stdio.h>
main()
{
	printf("Program by Sirawut Patchoo\n");	
	int num1=0,num2=0,sum=0;
	
	printf("Enter number1-->");	
	scanf("%d,&num1");
	printf("Enter number2-->");	
	scanf("%d,&num2");
	
	sum = num1+num2;
	
	printf("Answer = %d",sum);
	printf("Answer = %d",sum);	
}