Program to implement Integer arithmetic operations

/*
Integer arithmetic operations
Created By : Sol
*/

#include<stdio.h>
int main(){
    int a=17,b=4;
printf("Sum=%d\n",a+b);
printf("Difference=%d\n",a-b);
printf("Product=%d\n",a*b);
printf("Quotient=%d\n",a/b);
printf("Remainder=%d\n",a%b);
return 0;
}

Output :



1 comments:

 

Pro

Chapters

About