sqrt.m.c 214 B

12345678910111213
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main(int argc, char ** argv) {
  4. float x;
  5. printf("enter a float: ");
  6. fflush(stdin);
  7. scanf("%f", &x);
  8. printf("sqrt(x) = %f\n", sqrt(x));
  9. return 0;
  10. }