Program to illustrate sqrt ( ) function


    #include <iostream.h>            //defines the cout, cin object
    #include <math.h>                // defines the sqrt( ) function
    #include <conio.h>
    void main ( )
    {
                    // Tests the sqrt( ) function
         for(int i =0; i < 6 ; i++)
                     cout<<"\t" << i << "\t" <<sqrt(i)<<endl;
          getch();
    }

No comments:

Post a Comment