ok this may seem like a silly question.. but why doesn't this work?
Code:
#include <stdio.h>
#include <math.h>
int main()
{
double x;
printf("Find the square root of: ");
scanf("%f", &x);
double i = sqrt(x);
printf("%f", i);
return(0);
}
This is what it displays when i input 9:
Code:
Find the square root of: 9
0.000000