BAB 2.1=>KONVERSI WAKTU MENGGUNAKAN C++ DAN RAPTOR

1.) C++
#include <iostream>
#include <conio.h>
using namespace std;
main()
{
long int jam,menit,detik,s,sisa;
cout<<"Program Konversi Detik Ke Jam, Menit & Detik\n";
cout<<"============================================\n";
cout<<"masukkan Detik : "; cin>>detik; cout<<endl;
jam=detik/3600;
sisa=detik%3600;
menit=sisa/60;
s=sisa%60;
cout<<detik ; cout<<" Detik = ";
cout<<jam ; cout<<" Jam ";
cout<<menit ; cout<<" Menit ";
cout<<s ; cout<<" detik ";
cout<<endl;
return 0;
}

 2.) RAPTOR

Share this

Related Posts

Previous
Next Post »