/*
Input two numbers and output the difference of them
*/
#include <stdio.h>
#include <stdlib.h>
int main()
{
int num1,num2;
printf("Please input two numbers use a space to seperate them.\n");
scanf("%d %d",&num1,&num2);
{
int diff=abs(num1-num2);
printf("The difference of %d and %d is %d\n",num1,num2,diff);
}
return 0;
}
result: