May 25, 2023
program to use arithmetic operators in c language
#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
sum=21
Difference=13
product=68
quotient=4
Remainder=1
by : Ajaj Khan
Quick Summary:
इस प्रोग्राम मैं दो वैल्यू दिया गया है a=17 और b=4
17 और 4 को जोड़ें फिर 17 मैं से 4 को घटाएं और 17 मैं 4 से गुणा करे फिर 17 मैं 4 से भगफल निकाले और 17 मैं 4 से शेषफल निकाले