Share
Explore BrainMass

Write a program that asks the user for two integers and a character, 'A', 'S', or 'M'.

Write a program that asks the user for two integers and a character, 'A', 'S', or 'M'. Call one of three functions that adds, substracts, or multiplies the user's integers, based on the character input.

Solution Preview

Please try the following program. The program and the executable file are also included.

#include<iostream.h>

void main()
{
int num1;
int num2;
char c;
int result=0;

cout << " Please enter ...

Solution Summary

Write a program that asks the user for two integers and a character, 'A', 'S', or 'M'.

$2.19