#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();
}
Labels: C++ Codes, C++ Function Codes
Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies| |
---|
0 comments:
Post a Comment