Thursday, May 3, 2012

Program in C to calculate Addition,Subtarction,Multiplication and Divison


/*****<soeasyprograms.blogspot.in>*****/
#include<stdio.h>


void main ()


{


int a,b,c,d,e,f;


clrscr();


printf ("Enter A: ");


scanf ("%d",&a);


printf ("Enter B: ");


scanf ("%d",&b);


c=a+b;


d=a-b;


e=a*b;


f=a/b;


printf ("\nSum is : %d",c);


printf ("\nSubtraction is : %d",d);


printf ("\nMultiplication is : %d",e);


printf ("\nDivision is : %d",f);


getch ();


}
Output of this program is :
Dont forget to give comments




No comments:

Post a Comment