Program for arithmetic operators in single step
#include<stdio.h>
main()
{
int a,b;
clrscr();
printf("enter a,b values :%d%d",&a,&b);
printf("add=%d\n,sub=%d\n,mul=%d\n,div=%d",a+b,
a-b,a*b,a/b);
getch();
}
output :-
enter a,b values : 2 4
add= 6
sub= -2
mul= 8
div= 0
0 comments:
Post a Comment