Menu driven calculator
Submit solution
C
Points:
10 (partial)
Time limit:
8.0s
Memory limit:
12M
Authors:
Problem type
Allowed languages
Problem Definition
Menu-driven calculator using functions for the Given two integers and choice(1.addition 2.multiplication 3.subtraction 4. division)
Input format
A single line containing three integer values separated by a space say 5,6 and 1 to be specified as 5 6 1
Output Format
A message of the format " The sum of 5 and 6 is 11"
Sample Input
5 6 1
Sample output
Sum of 5 and 6 is 11
Sample Input
5 6 2
Sample output
Mul of 5 and 6 is 30
Sample Input
5 6 3
Sample output
Sub of 5 and 6 is -1
Sample Input
5 6 4
Sample output
Div of 5 and 6 is 0.000000
Comments