C Program to Perform Arithmetic Operations on Given Integers | Arithmetic operations in C program

Spread the love

/******************Program****************/

#include<stdio.h>
void main(void)
{
    int a,b;
printf(“Enter Value for a :”);
scanf(“%d”,&a);
printf(“Enter Value for b :”);
scanf(“%d”,&b);

printf(“Sum=%dn”,a+b);

printf(“Difference=%dn”,a-b);
printf(“Product=%dn”,a*b);
printf(“Quotient=%dn”,a/b);
printf(“Remainder=%dn”,a%b);

}

/******************OUTPUT****************/


Venkatesh Macha

Hi Guys, I am Venkatesh Macha. I am a programmer and an Open Source enthusiast, Presently working as a Software Engineer. Apart from that, I love to explore new technologies and things.

You may also like...

Leave a Reply