Problem Analysis
the problem is to write a program to add, subtract, multiply and divide two integers using user defined type function with return type.
Codes:
Output:
enter two numbers:1 2
sum=3
difference=-1
product=2
quotient=0.500000
the problem is to write a program to add, subtract, multiply and divide two integers using user defined type function with return type.
enter two numbers:1 2
sum=3
difference=-1
product=2
quotient=0.500000