Thursday, July 22, 2010

Write a programe to print addition and subtraction of the given number

// Write a programe to print addition and subtraction of the given number //

#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr ();
int a,b,c,d;
printf("Enter the number\n");
scanf("%d%d",&a,&b);
c=a+b;
printf("Add is %d\n",c);
d=a-b;
printf("Sub is %d",d);
getch ();
}

No comments:

Post a Comment