Header Ads

Header ADS

URI 1019 Time Conversion Solution in C++

URI 1019 đź‘€ Time Conversion đź‘€Solution in C++

URI Online Judge Solution 1019 Time Conversion  in C++
Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just find out the logic. If you stuck in trouble, just inform me on comment.

URI Online Judge Solution 1019 Time Conversion  in C++


#include<bits/stdc++.h>
using namespace std;


int main(){
    int N,H,M,S,SE;
    cin>>N;
    H=N/(60*60);
    SE=N%(60*60);
    M=SE/60;
    S=SE%60;

    cout<<H<<":"<<M<<":"<<S<<endl;


return 0;}

No comments

URI 1070 Six Odd Numbers Solution in C++

URI 1070 Six Odd Numbers Solution in C++ Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just fin...

Powered by Blogger.