Computer Science, asked by Puja8622, 9 months ago

C# program to add, subtract, multiply and divide two numbers using overloading for integers and floats.

Answers

Answered by sanju45216530
0

Answer:

output :enter the value a and b:5,10

addition :5+10=15

subtraction :5-10=5

multiple :5*10=50

division :5/10=2

Explanation:

#include<stdio.h>

main()

{

int a=5,b=10;

printf("the sum of a and b is",(a+b));

printf("the difference of a and b is",(a-b));

printf("the product of a and b is",(a*b));

printf("the division of a and b is",(float) (a/b));

}

Similar questions