Question 6
Write a program to design a class to overload a function compute() as follows:
int compute(int n)-returns the square of the number n
int compute(int n, int m)- returns the
power n"
int compute(int n, int mint p) -returns the product of n m and p
Using switch..case call the functions in the main method.
Answers
Answered by
0
Answer:
you want to add this question in computer science
Similar questions