Ask Question

Write a program that prompts the user to input two numbers

+4
Answers (1)
  1. 31 March, 06:48
    0
    input two numbers x and y

    Explanation:

    #include

    # include

    int main ()

    {

    int x, y;

    cout<<"Enter first number ";

    cin>> x;

    cout<<"Enter second number";

    cin>>y;

    if (x > y)

    cout<<"The number is = "<< x;

    else

    cout << "The number is = " <
    getch ();

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a program that prompts the user to input two numbers ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers