Hey Guys,
Newbie here. I have written a little program as specified by our teacher. I just need to know how to get it into columns of 10. I tried with a for loop and modulus, but it only spaces them and doesn't do it vertically.
Thanks for any suggestions.
Code:double alpha[50]; int i,a; int main(int argc, char *argv[]) { for (i =0; i < 25; i++) { alpha[i]=i*i; cout << alpha[i] << endl; } for (a=0; a < 50; a ++) { alpha[a]=a*3; cout << alpha[a]<<endl; }
Thanks again,
-Scott