14.10.11

C++ KONVERSI JAM

#include<iostream.h>
main()
{
long int j,m,d;

    cout <<"KONVERSI WAKTU\n";
    cout <<"Masukkan Jumlah Jam : ";

cin >>j;

    cout <<j ; cout << " Jam = ";
  
    m=j*60;
    cout <<m ; cout << " Menit = ";
  
    d=m*60;
    cout <<d ; cout << " detik ";
}

0 komentar:

Posting Komentar