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();
    }

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|