Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class IsFemaleBool
- {
- static void Main()
- {
- bool isFemale = false;
- int choise;
- while (true)
- {
- Console.WriteLine("Choise your gender\n For : \n Feamle submit - 1\n Male submit - 2");
- choise = int.Parse(Console.ReadLine());
- if (choise == 1 || choise == 2)
- {
- break;
- }
- }
- if (choise == 1)
- {
- isFemale = true;
- }
- Console.WriteLine("Female => {0}",isFemale);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement