Subtraction Using Arithmatic Operator

Thursday, 8 September 2011

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter the value of a&b");
scanf("%d%d",&a,&b);
c=a-b;
printf("\nthe value of c is %d",c);
getch();
}


OUTPUT:


enter the value of a&b
5
4
the value of c is1









No comments:

Post a Comment

 

Blogger news

Blogroll

Enter your email address:

Delivered by FeedBurner

Total Pageviews

Followers

Most Reading