Write a program to subtract two integer in C?
Hello aspirant,
Here is code of subtraction of two interger in c.
#include <stdio.h>
#include <stdlib.h>
int main()
{
int num1=54,num2=67;
//variable declaration and initialization
int sub=num2-num1;
//formula of subtraction
printf("Difference of two numbers are: %d\n",sub);
//display the result
getch();
return 0;
}
Hope this helps you
All the best for your future plans