Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int people;
- int cats;
- int dogs;
- Console.Write("Enter number of people:");
- people = int.Parse(Console.ReadLine());
- Console.Write("Enter number of cats:");
- cats = int.Parse(Console.ReadLine());
- Console.Write("Enter number of dogs:");
- dogs = int.Parse(Console.ReadLine());
- if (people < cats)
- Console.WriteLine("Too many cats! The world is doomed!");
- else if (people > cats)
- Console.WriteLine("Not many cats! The world is saved!");
- else if (people < dogs)
- Console.WriteLine("The world is drooled on!");
- else if (people > dogs)
- Console.WriteLine("The world is dry!");
- dogs = (dogs + 5);
- if (people >= dogs)
- Console.WriteLine("People are greater than or equal to dogs");
- else if (people <= dogs)
- Console.WriteLine("People are less than or equal to dogs");
- else if (people == dogs)
- Console.WriteLine("People are equal to dogs");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement