Earn while u Learn

Tips tweaks hacks on computer with C C++ VB tutorials and ways to earn money online

ad

addition, substraction, multiplication, division in one program of two numbers in C

This program is for addition, substraction, multiplication, division in one program of two numbers in C.
CODE:
__________________________________________________________

#include(stdio.h)
#include(conio.h)

main()
{
int a,b,add,sub,mul,div;
printf("Enter two numbers");
scanf("%d%d",&a,&b);
add=a+b;
sub=a-b;
mul=a*b;
div=a/b;
printf("Addition =%d\n Substraction=%d\n Multiplication=%d\n Division=%d\n",add,sub,mul,div);
getch();
}
 __________________________________________________________

0 comments:

Sign in / Join

Labels