Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace exampreparation
- {
- class exam
- {
- static void Main(string[] args)
- {
- int intelligence = int.Parse(Console.ReadLine());
- int power = int.Parse(Console.ReadLine());
- string sex = Console.ReadLine();
- string role = "";
- if (intelligence >= 80)
- {
- if (power >= 80)
- {
- if (sex == "female")
- {
- role = "Queen Bee";
- Console.WriteLine($"{role}");
- return;
- }
- }
- }
- if (intelligence >= 80)
- {
- role = "Repairing Bee";
- Console.WriteLine($"{role}");
- return;
- }
- if (intelligence >= 60)
- {
- role = "Cleaning Bee";
- Console.WriteLine($"{role}");
- return;
- }
- if (power >= 80)
- {
- if (sex == "male")
- {
- role = "Drone Bee";
- Console.WriteLine($"{role}");
- return;
- }
- }
- if (power >= 60)
- {
- role = "Guard Bee";
- Console.WriteLine($"{role}");
- return;
- }
- else
- {
- role = "Worker Bee";
- Console.WriteLine($"{role}");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement