Prime b

Prime b

  • NA
  • 810
  • 346.8k

Help with loops

Jan 3 2012 12:46 AM
The problem
Write a console-based application that asks the user to type a
vowel from the keyboard. If the character entered is a vowel,
display "OK"; if it is not a vowel, display an error message.
Be sure to allow both uppercase and lowercase vowels. Th e
program continues until the user types '!'.

I been doing it for last 30 minutes, and I just cant figure out how to do it....

This is as far as I got

            int count = 0;
            double userInput;
            string userInputString;

            Console.WriteLine("Enter vowel");
            userInputString = Console.ReadLine();
            userInput = Convert.ToChar(userInputString);

Help?

Answers (2)