Now this program is like a Number subtraction program. In this program we subtract a two integers in variables and output is our final answer.so we make a Number subtraction program and here is our code.
INPUT:
- #include<stdio.h>
- #include<conio.h>
- int main ( )
- {
- clrscr ( );
- int a,b,ans;
- printf (" enter the value of a ");
- scanf ("%d",&a");
- printf (" enter the value of b ");
- scanf ("%d",&b");
- ans=a-b;
- printf (" ans=%d", ans);
- getch ( );
- }
OUTPUT:
- enter the value of a. 15
- enter the value of b. 10
- ans = 5