I have this assignment that is due asap Ask the user for a n

I have this assignment that is due asap.

Ask the user for a number and display the product of that number times 83.

Here is what I have so far. Needs to be basic C++.

#include <iostream>
#include <string>
using namespace std;

int main () {
int number;

cout << \"Enter an integer: \";
cin >> number;
cout << number;
cout << endl;

return 0;
}

Solution

#include <iostream>

using namespace std;

int main()

{

    int n;

    cout << \"Enter a positive integer: \";

    cin >> n;

    for (int i = 1; i <= 10; ++i) {

        cout << n << \" * \" << i << \" = \" << n * i << endl;

    }

   

    return 0;

}

I have this assignment that is due asap. Ask the user for a number and display the product of that number times 83. Here is what I have so far. Needs to be basi

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site