bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
root / semester_2 / practice / prac_001.cpp

prac_001.cpp (255B)


      1 /* Trying to remember after a year. */
      2 
      3 #include <iostream>
      4 using namespace std;
      5 
      6 int main() {
      7     int n;
      8     cout << "Enter a number: ";
      9     cin >> n;
     10 
     11     for (int i = 1; i <= n; i++) {
     12         cout << i << " ";
     13     }
     14     cout << endl;
     15 
     16     return 0;
     17 }