Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CatLife
- {
- class Program
- {
- static void Main()
- {
- string catBreed = Console.ReadLine();
- string catGender = Console.ReadLine();
- int breedYears = 0;
- switch (catBreed)
- {
- case "British Shorthair":
- breedYears = 13;
- break;
- case "Siamese":
- breedYears = 15;
- break;
- case "Persian":
- breedYears = 14;
- break;
- case "Ragdoll":
- breedYears = 16;
- break;
- case "American Shorthair":
- breedYears = 12;
- break;
- case "Siberian":
- breedYears = 11;
- break;
- default:
- Console.WriteLine($"{ catBreed} is invalid cat!");
- break;
- }
- if (catGender == "f")
- {
- breedYears++;
- }
- if (breedYears > 1)
- {
- Console.WriteLine($"{breedYears * 2} cat months");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment