khoob study

Monday, November 7, 2022

Add, Sub, Multiplication or Division of two number in c language

 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