Sabtu, 22 Maret 2014

Mencari Akar

using namespace std;

int main(int argc, char *argv[])
{
    float y;
    float x;
   
    cout<<"Masukkan Angka=";
    cin>>y;
   
    x =  sqrt (y);
    cout<<endl;
    cout<<"Akarnya "<<y<<" Ald= ";
    cout<<x<<endl<<endl;
   
    system("PAUSE");
    return EXIT_SUCCESS;
}

0 komentar:

Posting Komentar