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
CBSE BOARD XII,
6 days ago
Math,
6 days ago
Social Sciences,
6 days ago
Social Sciences,
12 days ago
Hindi,
12 days ago
Physics,
8 months ago