How would I do a thing over and over again in c++? For instance, std::cout<<"hello World"; x 100. I tried if statements, but it didn’t work.
>Solution :
Have you tried a for loop?
//does what you described
for (int i = 0; i<100; i++){
std::cout<<"Hello World\n";
}
Please do research before posting.