Answer to Question #297517 in C++ for Abou5

Question #297517

Prompt the user to input two integers: firstNum and secondNum note that firstNum


1
Expert's answer
2022-02-14T12:04:27-0500


#include <iostream>


using namespace std;


int main()
{
	int firstNum;
    int secondNum;
   
    cout << "Enter firstNum: " ;
    cin >> firstNum;
    secondNum = firstNum;
    do {
        cout << "Enter secondNum: " ;
        cin >> secondNum;
    } while (firstNum >= secondNum);


	cout << "firstNum: " <<firstNum<< endl;
	cout << "secondNum: "<<secondNum << endl;


	system("pause");
	return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog