Selamat datang di maiav3.blogspot.com => Blog "TANPO ASMO"

SCRIPT C++_PYTAGHORAS

Jumat, 18 Januari 20131komentar


//created by maiaachiea
//program pythagoras

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

void main (){

float nilai_a, nilai_b, hasil;
cout <<"masukkan nilai a : ";cin>>nilai_a;
cout <<"masukkan nilai b : ";cin>>nilai_b;

hasil=sqrt(nilai_a*nilai_a+nilai_b*nilai_b);

cout<<endl;
cout<<"akar dari "<<nilai_a*nilai_a+nilai_b*nilai_b<<" adalah "<<hasil;

}
Share this article :

+ komentar + 1 komentar

18 Januari 2013 pukul 20.43

semoga bermanfaat buat teman-teman... ^_^

Posting Komentar

 
Support : Maia Achiea Template
Copyright © 2011. .: ^_^ :. - All Rights Reserved
Proudly powered by Blogger