Answer to Question #285224 in C for Venil

Question #285224

Write a program to input 2 numbers and print sum, subtraction, multiplication, division and modulus of those numbers.





1
Expert's answer
2022-01-06T05:38:19-0500
#include<conio.h>
# include<stdio.h>
#include<stdlib.h>


//	Write a program to input 2 numbers and print sum, subtraction, multiplication, division and modulus of those numbers.


int main()
{
	int a,b;
	printf("\n\tEnter number a = "); scanf("%d",&a);
	printf("\n\tEnter number b = "); scanf("%d",&b);
	
	printf("\n\n\tSum            = %d + %d = %d",a,b,a+b);
	printf("\n\n\tSubstractoin   = %d - %d = %d",a,b,a-b);
	printf("\n\n\tMultiplication = %d * %d = %d",a,b,a*b);
	printf("\n\n\tDivision       = %d / %d = %d",a,b,a/b);
	printf("\n\n\tModulus        = %d %c %d = %d",a,'%',b,a%b);
}




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS