hi
guys ,iam stuck in this problem for so long now ,could u plz help me out....actually i don't know much about arrays in c language and how to work with them,but still i have written a program ,i don't know why it is not running properly.......
this is about printing the squares of numbers from 1 to 10 in an array.
i did like this:
#include<stdio.h>
#include<conio.h>
void main()
{
int x[10],i,square=0;
clrscr();
for(i=0;i<10;i++)
square=x[i]*x[i];
printf("square=%d",square);
getch();
}

plz help me out to print the squares of series of 10 elements in
an array from 1 to 10.