#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
long int a,s,b,jam,menit,detik,total;
char ulang;
ulang:
cout<<"Program menghitung konversi waktu"<<endl<<endl;
cout<<"Inputkan jam=";
cin>>s;
jam=s*3600;
cout<<"Inputkan Menit=";
cin>>a;
menit=a*60;
cout<<"Inputkan Detik=";
cin>>b;
detik=b+detik;
total=jam+menit+detik;
cout<<"Total detik:"<<total;
return 0;
}
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
Langganan:
Posting Komentar (Atom)