/*Before seeing the code solution make sure that you have tried enough. Don’t copy- paste the whole code. Find out the logic. If you face any trouble, just inform me in comment.*/
#include<stdio.h>
main()
{
int n,h,m,s,n1,n2;
scanf("%d",&n);
h=n/3600;
n1=n%3600;
m=n1/60;
n2=n1%60;
s=n2;
printf("%d:%d:%d\n",h,m,s);
return 0;
}
//Happy_Coding
#include<stdio.h>
main()
{
int n,h,m,s,n1,n2;
scanf("%d",&n);
h=n/3600;
n1=n%3600;
m=n1/60;
n2=n1%60;
s=n2;
printf("%d:%d:%d\n",h,m,s);
return 0;
}
No comments:
Post a Comment