knowledgediarybd.com

Your Virtual Knowledge Campus

Summation, Subtraction, and Multiplication of two integer Number

Dear Reader,Here are Some C Program about Summation, Subtraction, and Multiplication of two integer Number

#A program that read two integer and display sum

#include<stdio.h>

int main()
{
int a,b; //variable declaration
printf("a= ");
scanf("%d",&a);
printf("b= ");
scanf("%d",&b);

printf("Sum= %d",a+b);
return 0;
}

#A program that subtract two integer

#include<stdio.h>
int main()
{
int a,b; //variable declaration
printf("a= ");
scanf("%d",&a);
printf("b= ");
scanf("%d",&b);

printf("Subtraction= %d",a-b);
return 0;
}

#A program that read two integer and display product

#include<stdio.h>
int main()
{
int a,b; //variable declaration
printf("a= ");
scanf("%d",&a);
printf("b= ");
scanf("%d",&b);

printf("Multiplication = %d",a*b);
return 0;
}

More Similar C Program:

#A program that read two integer and display Division & Remainder.

#A program that read any character and display ASCII value.

#A program that read any upper case character and display in Lower case.

Related Post or You May Like:

knowledgediarybd.com © 2017
shares