Write a C program to calculate difference of two numbers. Here’s simple program to calculate difference of two numbers in C Programming Language.
In this program, Firstly, we are going to take input of two numbers from the user and then check for the condition which number is larger. After that, we use basic formula to calculate difference of two numbers i.e diff = num1 – num2;
Below is the source code for C program to calculate difference of two numbers which is successfully compiled and run on Windows System to produce desired output as shown below :
SOURCE CODE : :
OUTPUT : :
Above is the source code for C program to calculate difference of two numbers which is successfully compiled and run on Windows System.The Output of the program is shown above .
need an explanation for this answer? contact us directly to get an explanation for this answer