Monday, 22 April 2013

Ex10menu


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ex10menu
{
    class Program
    {
        static void Main(string[] args)
        {
            int Option;
            Option = 4;
            Console.WriteLine("Enter a Option Number:");
            Console.Write("\nOption: ");
            Option = Convert.ToInt32(Console.ReadLine());
            switch (Option)
            {
                case 1:
                    Console.Write("\nThis application will allow you to create a pyramid structure.");
                    break;
                case 2:
                    Console.Write("\nThis application will allow you to add two primary colors and displays third color.");
                    break;
                case 3:
                    Console.Write("\nThis application will allow you to create meanningful words from jumbled letters.");
                    break;
                case 4:
                    Console.Write("\nThis application will allow you to create multilpe words from a single word.");
                    Console.Write("\nEach will increase your score by 1.");
                    break;
                default:
                    Console.Write("\nInvalid Option entered.");
                    break;
            }
            Console.ReadLine();
        }
    }
}

No comments:

Post a Comment