Google Translate

Progam detik ke waktu lain

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

main(void) {

int detik ;
int n;
int menit ;
int jam ;

printf("Masukkan detik : ");
scanf("%d", &n);

jam = n /3600 ;
menit = (n%3600)/ 60;
detik = (n%3600)%60 ;


printf ("\n%d jam, \n%d menit, \n%d detik", jam, menit, detik );


getch ();
}
Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

0 comments

:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

 
© ILMU TEKNIK INFORMATIKA
Designed by BlogThietKe Cooperated with Duy Pham
Released under Creative Commons 3.0 CC BY-NC 3.0
Posts RSSComments RSS
Back to top