Tuesday, December 13, 2011

Program to compute your weight on moon in C-Sharp


// Compute your weight on moon
using System;
    class moon
    {
        static void Main()
        {
            double earthweight; // wieght on earth
            double moonweigth; // wieght on moon

            earthweight = 165.0;
            moonweigth = earthweight * 0.17;
            Console.WriteLine(earthweight + " earth-pounds is equivalent to " + moonweigth + " moon-pounds.");
        }
    }

No comments:

Google : The top most search engine

Google : MAGIC BOX

nRelate - Posts and Homepage

LinkWithin

Related Posts Plugin for WordPress, Blogger...

Which is the toughest subject ?