Mint to hr
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sololearn
{
class Program
{
static void Main(string[] args)
{
const int min_in_hours = 60;
int hours;
int minutes;
Console.WriteLine("Enter number of minutes");
int getMints = int.Parse(Console.ReadLine());
hours = getMints/min_in_hours;
minutes = getMints -(hours*60);
Console.WriteLine("{0}h{1}m",hours,minutes);
}
}
}
Comments
Post a Comment