December 16, 2018
Hour minute second
Threads: Write a program in seconds, Change the number of seconds into the form "hh:mm:ss”.
Input: A single integer.
Output: A format string as above.
For example:
input: 7826 output: 02:10:26
You are not logged in? Log in to Submit Now!
20 Comments
Add a Comment
You must be logged in to post a comment.
Print Queue at?? @@, dev c ++ compile by his still
make it ok but the format HH:PP:SS not only H:P:S
think a little will be.
Apparently the result output section b uses% 02d – it corresponds width = 2 , number 0 if there is some < 2 the current digit 0
For example : import 4 out 04
why I do right still faulty
system answers not so mn
post your code so people fix bugs on behalf.
My brother asked me want to see how other people how ạ ??
This one does not have nhé. Only viewable only admin.
Your website rat or, hope to the developing and the more articles further tap
Thank you.
Explanation of C code only severance sir. No other language of sir. ?
His current new C solution alone. Other languages no nhé.
Why Print Queue right.
Print Queue get forward a soon overcome this situation.
Yesterday, too, Today in Print Queue still.
Thank you. You try to see it yet?
Thanks to this work the state does so a pascal
You have to think rather.
int main(){
int x = 7826;
int Thu,Minute,Shine;
/*
gio = Shine / 3600;
Minute = [Shine % (gio*3600)]
Shine = x – [(gio*3600)+(Minute * 60)]
*/
Thu = x /(60*60);
Minute = (x % (2*60*60))/60;
Shine = x -((gio*3600)+(Minute * 60));
printf(“%d Thu”,gio);
printf(“%D Phut”,Minute);
printf(“%d Shine”,Shine);
return 0;
}
You log in and submit nhé. Not to comment.
Anyone know how to print integer format 01 02 in pascal not you do it yourself types 1:1:1 Should not true test