#include
#include
void main()
{
int a,b,add,sub,multi,div,rem;
clrscr();
printf("Enter Two number"); //This is used to display massege.
scanf("%d%d",&a,&b); //This is used to take value by user.
add=a+b;
sub=a-b;
multi=a*b;
div=a/b;
rem=a%b;
// display of value of variable.
printf("Addition is %d",add);
printf("substrction is %d",sub);
printf("Multiplication is %d",multi);
printf("dividetion is %d",div);
printf("remaining is %d",rem);
getch();
}
No comments:
Post a Comment