Answer to Question #268615 in C++ for joseph

Question #268615

Make a program that will accept an integer and loop from 1 to that integer. Then, print all numbers from that range that are greater than 3.


1
Expert's answer
2021-11-19T10:01:26-0500
#include <iostream>

using namespace std;

int main()
{
    int n;
    cin >> n;
    for (int i=1; i<n; i++){
        cout << i << '\n';
    }
    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
APPROVED BY CLIENTS