NextVox
← Back to the magazine
codingCasual8th grade

thy hello world, now overcomplicated-ish.

by Luffy · September 2, 2026

Hearts help pick each month’s winners.

The code
#include <iostream>
using namespace std;

void helloWorld(long long howMany) {
    for (long long i=0; i<howMany; i++) {
        cout << "Hello World!\n";
    }
}

int main() {
    long long numToTransfer;
    cin >> numToTransfer;
    helloWorld(numToTransfer);
    return 0;
}