I have the following program that fills that array from 0 to 19.
I however want the array to be filled from 0 to 90 in increments of 5.
How do i go about doing this?
note: In the 'i' loop i tried changing it to: (int i=0;i<=90;i+=5), however this does not work.
The first question was to develop that array.
The second question states: Use a second loop to fill the "sinTheta"and "tanTheta" arrays with sin(x) and tan(x) values where: 0 <= x <= 90 and x increases in steps of 5.
How would I include the upper limits of 90? since sin90=1 which is a valid answer however tan90 is undefined. All of this is supposed to be in one loop i think.