Explore BrainMass

Explore BrainMass

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

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    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.

    © BrainMass Inc. brainmass.com March 4, 2021, 6:20 pm ad1c9bdddf
    https://brainmass.com/computer-science/cpp/write-a-program-that-asks-the-user-for-two-integers-and-a-character-a-s-or-m-40826

    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.49

    ADVERTISEMENT