Write a Program to Add, Subtract, Multiply and Divide in C

I am not gonna Describe this Program because it is the easiest one !! #include <stdio.h> int main() { int first, second, add, subtract, multiply; float divide; printf(“Enter two integers\n”); scanf(“%d%d”, &first, &second); add = first + second; subtract = first – second; multiply = first * second; divide = first / second; printf(“Sum = … 

 

Write a program to find sum of two numbers in C

This is a simple program to find out the sum of two numbers in C Program. Hope it will help you! //write a program to find sum of two numbers #include<stdio.h> #include<conio.h> void main(){ int a,b,c; //clrscr(); printf(“Enter Two Values”); scanf(“%d%d”,&a,&b); c=a+b; printf(“the sum of a and b is %d”,c); }  

 

Write a Program to check the greatest number in C Programming

Hello, all Here i have shared you the way to find the greatest number among two numbers. so here is the code #include<stdio.h> void main(){ int a,b; printf(“Enter Two Numbers”); scanf(“%d%d”,&a,&b); if(a>b){ printf(“%d is grater than %d”,a,b); }else{ printf(“%d is grater than %d”,b,a); } }   if you are happy with this post feel free …