Friday 21 October 2011

function sqrt c++

function sqrt c++ . Sometimes we are confused, how do I search for the root of a value in C + +. Well, you missed confusion with the function sqrt () in C + +. Here is an example of the syntax to find the roots in C + +. His program is very simple and easy to understand. Because we live enter numbers into the function sqrt ().
For more details, see the following syntax:


#include <iostream.h>
#include <conio.h>
#include <math.h>

void main()
{
 int angka;
 clrscr();

 cout<<"ROGRAM PENCARI NILAI AKAR"<<endl;
 cout<<endl;
 cout<<"Masukkan Angka : "; cin>>angka;

 cout<<endl<<endl;
 cout<<"Akar Dari "<<angka<<" = "<<sqrt(angka)<<endl;
 getch();
}

No comments:

Post a Comment