Beecrowd URI Problem 1019 Time Conversion Solution in C Language

BEECROWD URI has intruduce you with a proiblem named Time Conversion at 1019 number in BEECEROWDS Beginner Priblems section.

there will give you to take an input of a int number value and convert that into HOUR:MINUTE:SECOND 

This is the main probleem of Beecrowd 1019 Time Conversion. Here i will proviode you the solution of this problem in C Language.

Beecrowd URI Problem 1019 Time Conversion Solution in C Language

Beecrowd URI Problem 1019 Time Conversion Solution in C Language




If  YOU are rreally don't unterstanding that problem only then see the solution code from here. Otherwise dont need to see the code.

Beecrowd URI Problem 1019 Time Conversion Solution in C Language :

// Author: Rayhan Hosen Refat
#include <stdio.h>
int main()
{
    int N,h,m,s;
    scanf("%d",&N);
    h = N / 3600 ;
    N %= 3600 ;
    m = N / 60 ;
    s = N %= 60 ;
    printf("%d:%d:%d\n", h ,m ,s );
    return 0;
}