Q. Square Root of a no. ?

THE OUTPUT WOULD BE

 
#include<stdio.h>
#include<conio.h>
#include<math.h>
  void main( )
  {    clrscr( );
        float n;
        printf("Enter the value of n = ");
        scanf("%f",&n);
        printf("Squart Root of %.1f = %.2f",n,sqrt(n));
        getch( );
  }

No comments:

Post a Comment