CSharp examples for System:DateTime
convert Parsec To Light year
using System.Threading.Tasks; using System.Text; using System.Linq; using System.Collections.Generic; using System;/*from w ww . java 2s .c o m*/ public class Main{ private const double PARSEC_PER_LIGHTYEAR = 3.26156378; //convert parsec to lightyear public static void convertParsecToLightyear(double Parsec) { double result = PARSEC_PER_LIGHTYEAR * Parsec; Console.WriteLine("There are {1} light Years in {0} Parsecs", Parsec, result); } }