coasterka

#3GravitationOnTheMoon

Mar 13th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. static void Main()
  2.         {
  3.             Console.WriteLine("What is your weight?");
  4.             double weightOnEarth = double.Parse(Console.ReadLine());
  5.             double weightOnMoon = (weightOnEarth * 17) / 100.00;
  6.             Console.WriteLine("Your weight on the Moon would be exactly " + weightOnMoon);
  7.         }
Advertisement
Add Comment
Please, Sign In to add comment