Test Help!

Hey .. new to C++ and need help writing this short program ......

Given an array of angles A = [0 30 60 90 120 150 180 210 240 270 300 330 360]
write a program that will generate the data set of angles automatically and provide three columns; sin(angle), cos(angle), tan(angle). Make this program as compact and readable as possible.

I have no idea where to start!
If the problem is confusing... break it down into smaller, more manageable parts.

- Start by writing a main() function
- Then create your array of angles
- Then start printing the output
finally got some help from the teacher but still confused using loops .. thank you.
Topic archived. No new replies allowed.