#include <stdio.h> main() { int num1=0,num2=0,sum=0; scanf("%d,&num1"); scanf("%d,&num2"); sum = num1-num2; }
Standard input is empty
#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); }