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.


Expert's answer

#include <iostream>

using namespace std;

int main()
{
    int n;
    cin >> n;
    for (int i=1; i<n; i++){
        cout << i << '\n';
    }
    return 0;
}
LATEST TUTORIALS
APPROVED BY CLIENTS