Ride height

Log in om je oplossingen te testen.
// Ride height program using System; class Submission { // ------------------------- // Subprograms // ------------------------- static bool valid_height(double height) { if (height > 104) { return true; } else { return false; } } // ------------------------- // Main program // ------------------------- public static void Main(string[] args) { Console.WriteLine("Enter the height of the person in cm:"); double height = Convert.ToDouble(Console.ReadLine()); if (valid_height(height)) { Console.WriteLine("Height OK."); } else { Console.WriteLine("Sorry, you are too small."); } } }
Je kunt zo vaak indienen als je wenst. Er wordt enkel rekening gehouden met je laatst ingediende oplossing.
Log in om je oplossingen te testen.