Array

I am in a C++ programming class, but I am completely lost when it comes to compiling and executing programs, please help!

Write a program that declares an array of 50 integers. Initialize the array so that the first 25 elements are equal to the square of the index variable, and the last 25 elements are equal to three times the index variable. (For example, alpha[5]=25, alpha[31]=93.)
Output the array so that 10 elements per line are printed.

Thanks for your help!
Please make only one thread:
http://www.cplusplus.com/forum/beginner/41955/
Topic archived. No new replies allowed.