Differences of two number for beginners with basic..
Subtraction of two number for beginners with basic.
According to mathematics….
If a=50 and b=20 then differences = a-b so, 50-20 then answer is ’30’
In this programme initially you can take number before run. example a=10, b=20,. This programme is only for basic and for beginners.
Some important symbols used in code.
- () small bracket
- && use for ‘and’ use for address
- {} curly bracket
- “” double code

- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- int a, b, c;
- clrscr();
- printf(“The difference of two number\n”)
- a=100;
- b=25;
- c=a-b;
- printf(“n1 %d – n2 %d = %d”, a, b, c);
- getch();
- }
Inputs..
If a=100 and b=25 then.
Results..
Subraction = ’75’

Differences of two number by using ‘scanf‘…
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- int a, b, c;
- clrscr();
- printf(“Enter two number to find differences of two number\n”)
- scanf(“%d%d”, &a, &b);
- c=a-b;
- printf(“n1 %d – n2 %d = %d”, a, b, c);
- getch();
- }
Inputs..
If a=100 and b= 25..
Results..
Subraction = ’75’..

