/* write a program to calculate the Addition , Substraction ,Multiplication , Division, of number*/
#include<stdio.h>
#include<conio.h>
void main()
{ int a, b, Add, Sub, Mul, Div;
clrscr();
printf("Enter a numbers =\n");
scanf("%d%d",&a,&b);
Add=a+b;
Sub=a-b;
Mul=a*b;
Div=a/b;
printf("\nAddition of No=%d",Add);
printf("\nSubstraction of No=%d",Sub);
printf("\nMultiplication of No =%d",Mul);
printf("\nDivision of No =%d",Div);
getch();
}
/* Output Screen :--
Enter a number =4
2
Addition of No =6
Substraction of No =2
Multiplication of No =8
Division of No =2
*/
😊😉😘
No comments:
Post a Comment
This Blog helps you to learn basics to high level programming coding and practicals.
conceptual understanding