OUTPUT (after running):
Enter two numbers for addition: 20 40
The addition of two numbers: 60
Enter two numbers for difference: 80 40
The difference of two numbers: 40
Enter two numbers for multiplication: 50 90
The product of two numbers: 4500
Explanation:
In this program, we have called three functions—add( ), sub( ), and mul( )—from
the main( ) function.
Note that since we are not passing any values to these three functions and
just receiving value, in their prototypes declaration it is therefore necessary to include void in
Do'stlaringiz bilan baham: |