Computer Science, asked by sanjeevpiyush56, 1 month ago

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 shreyashreepani1985
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