repl.it
@TheGman753/

Counter

C++

Outputs numbers, that's it

fork
loading
Files
  • main.cpp
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
#include <cmath>
#include <complex>
#include <cfloat>
#include <climits>
#include <cstdio>
using namespace std;


int main() {
  int n;
    cout << "Input the starting point: ";
    cin >> n;
    const double o = n + 1;
    cout << o << endl;
    if (o > 100000)
    {return 0;}
    else
    {cout << o + 1 << endl;}
}
?