Add, Sub, Multiplication or Division of two int in c language
Program:-
#include<conio.h>
main()
{
int a=44,b=23;
clrscr();
printf("%i+%i=%i\n",a,b,a+b);
printf("%i-%i=%i\n",a,b,a-b);
printf("%i*%i=%i\n",a,b,a*b);
printf("%i/%i=%i\n",a,b,a/b);
printf("%i%%i=%i\n",a,b,a%b);
getch();
}
No comments:
Post a Comment