convert Week To Minute - CSharp System

CSharp examples for System:DateTime

Description

convert Week To Minute

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//ww  w.j  a  v a  2 s .  com

public class Main{
         private const float WEEK_TO_MINUTE = 10080;
        //convert weeks to minutes
        public static void convertWeekToMinute(double week)
        {

            double result = WEEK_TO_MINUTE * week;
            Console.WriteLine("There are {1} minutes in {0} weeks", week, result);


        }
}

Related Tutorials