heey guys..
i just learned the arrays.. am not really good at them..
can some one simplify it for me..
i gat this question.. i tried to solve it.. but didn't get the desired output :S
how ever it says 1 succeeded !
here's the Q:
1. Declare one array for storing the square roots of the integers from 0 through 10.
2. Declare one array for storing the cubes of the same integers.
3. Write a program that reads 10 integers and prints them in reverse order .
this is my work.. i'm pretty sure it's wrong..
#include <iostream>
using namespace std;
int main ()
{
int SQUARE_ROOTS [10];
cout<<"Enter 10 numbers:"<<endl;
for(int i=1;i>=10;i++)
cin>>SQUARE_ROOTS [i];
for(int i=1;i>=10;i--)
cout<<"The numbers in reverse order are:"<<endl
<<SQUARE_ROOTS [i];
return 0;
}