Saturday, May 4, 2019

Programming in C : two numbers substrate

Here we write code for two numbers substraction.using C is simple program and easlye write code.for begginer and student very useful.

Two numbers substrate

#include<stadio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("Enter value of a=");
scanf("%d",&a);
printf("Enter value of b=");
scanf("%d",&b);
c=a-b;
printf("a-b%d",c);
getch();
}

Out put:

Enter value of a=15
Enter value of b=10
a-b=5

This is simple program for substrate two numbers.so keep it up untill you master in c
Never give up

No comments:

Post a Comment

© Indian Festival | Powered by Blogger | Design by Enny Law - Supported by IDcopy