So far i have :

but then i have to reverse num and print the square root of that reversed number. I'm lost. I know that I have to use char or array but i'm not even sure how to start.Code:main(){ int num; double s; int i=0; printf("Enter 4 digit integer: "); scanf("%d",&num); s=sqrt(num); printf("Square root of %d is: %6.4f \n", num, s);

Anybody can point me in the right direction?

Thanks