Create a function void process(char ch, int x, int y)- to accept an
ch and to integers in arguments x and y. Now on the basis of the operator stored in ch perform te
in x and y and print the final result. Also, write a main function to input the two integers and on
operator, and by invoking function processo print the output.
Example : Input : First Integer
Second Integer
Value of ch
Output: The result of 5 and 7 on * = 24
4
6
Answers
Answered by
2
Answer:
Create a function void process(char ch, int x, int y)- to accept an
ch and to integers in arguments x and y. Now on the basis of the operator stored in ch perform te
in x and y and print the final result. Also, write a main function to input the two integers and on
operator, and by invoking function processo print the output.
Example : Input : First Integer
Second Integer
Value of ch
Output: The result of 5 and 7 on * = 24
4
6
Similar questions
Math,
19 days ago
Math,
19 days ago
Social Sciences,
1 month ago
Hindi,
1 month ago
Physics,
8 months ago