I thought about something last night. I want to print 200 random odd integers with 10 numbers per line. This is what I have so far & I don't know why it's not being randomized even though I'm using srand(). On the other hand, the 10 numbers per line part is where I'm completely lost. Thanks for taking the time to read.
1 2 3 4 5 6 7 8 9 10 11
#include <iostream>
#include <cstdlib>
#include <ctime>
usingnamespace std;
int main() {
srand(time(0));
for(int c = 1; c <= 200; c++) {
if(c % 2 != 0) cout << c << " ";
}
}