Blogroll

Tuesday, 14 October 2014

CODING C++ (Menghitung waktu Yang di tempuh)

07:44


#include<iostream>
using namespace std;
int main(){
float V,miring,A,S,T,keliling;
V=1.5;
miring=15;
A=9;
cout<<"Kecepatan= 1,5 m/s\n";
cout<<"Sisi miring= 15 m\n";
cout<<"Alas= 9 m\n";
T= sqrt(pow(miring,2)-pow(A,2));
cout<<"Tinggi segitiga = \n";
cout<<"Waktunya = ?\n";
cout<<"Tinggi = ";cout<<T<<" m \n";
keliling=miring+A+T;
S=keliling/V;
cout<<"Waktu yang di tempuh =  "<<S<<" detik\n";
system("pause");
return 0;
}

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 comments:

Post a Comment

Powered by Blogger.

 

© 2013 BELAJAR LAGI. All rights resevered. Designed by Templateism

Back To Top