heading


heading

cmpletommor

  • cmpletommor

Arthmatic operators:

/* A program to show various arthmatic operation */ #include<stdio.h> #include<conio.h> void main() { int a,b,c,d,e,f,g; clrscr(); printf("enter the value of a and b"); scanf(" %d %d",&a,&b); c=a+b; /* d=a-b; e=a*b; arthmatic operators f=a/b; g=a%b; */ printf("\n c is %d",c); printf("\n d is %d",d); printf("\n e is %d",e); printf("\n f is %d",f); printf("\n g is %d",g); getch(); }

output:

enter the value of a and b 5 2 c is 7 d is 3 e is 15 f is 2 g is 1