Wednesday, August 23, 2017

1019 Time Conversion URI Problem Only Solution In C#


using System;

class URI {

    static void Main(string[] args) {

        int r=Convert.ToInt32(Console.ReadLine());

        int a=r/3600;

        int b=(r-3600*a)/60;

        int c=(r-3600*a)-60*b;

        Console.WriteLine(a+":"+b+":"+c);

    }

}

No comments:

Post a Comment