diff --git a/subtract b/subtract new file mode 100644 index 0000000..625bce8 --- /dev/null +++ b/subtract @@ -0,0 +1,15 @@ +//C Program To Subtract Two Numbers + +int main(){ + int num1, num2, difference; + + //Asking for input + printf("Enter first number: "); + scanf("%d", &num1); + printf("Enter second number: "); + scanf("%d", &num2); + + difference = num1 - num2; + printf("Difference of %d and %d is: %d", num1, num2, difference); + return 0; +}