Advertisement
simeon_petrov

Homework 5 Problem 2

Sep 12th, 2015
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Problem_2_GravitationOnTheMoon
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13.  
  14. Console.Write("Enter the weigh on the Earth: ");
  15. double w = double.Parse(Console.ReadLine());
  16. Console.Write("The weigh of a man on the Moon is: {0}", w*0.17);
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement