Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace itvdnCourse
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = 21;
- int b = 33;
- int c = 5;
- Console.WriteLine("Enter number:");
- a = int.Parse(Console.ReadLine());
- b = int.Parse(Console.ReadLine());
- c = int.Parse(Console.ReadLine());
- if (a > c && a < b)
- {
- Console.WriteLine(21);
- }
- if (b > c && a < b)
- {
- Console.WriteLine(33);
- }
- if (b < c && a > b)
- {
- Console.WriteLine(5);
- }
- else
- {
- Console.WriteLine(5);
- }
- Console.WriteLine("33 more of them");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement