using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Source
{
class Program
{
static void Main(string[] args)
{
int hour = GetTotalSecond(2); //시간입력
int minute = GetTotalSecond(2, 2);//시 분입력
int second = GetTotalSecond(2, 2, 1);//시 분 초입력
Console.WriteLine("시간 : {0}", hour);
Console.WriteLine("시간 + 분 : {0}", minute);
Console.WriteLine("시간 + 분 + 총 : {0}", second);
Console.ReadLine();
}
public static int GetTotalSecond(int a)
{
int hour = a * 3600;
return hour;
}
public static int GetTotalSecond(int a, int b)
{
int minute = (a * 3600) + (b * 60);
return minute;
}
public static int GetTotalSecond(int a, int b, int c)
{
int second = (a * 3600) + (b * 60) + c;
return second;
}
}
}