Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Test
- {
- public static void Main()
- {
- int a, b, c;
- string s;
- s = Console.ReadLine();
- a = int.Parse(s);
- s = Console.ReadLine();
- b = int.Parse(s);
- s = Console.ReadLine();
- c = int.Parse(s);
- if (a == 2 || a == 5){
- Console.WriteLine("На границе: " + a);
- }else if (a > 2 && a < 5){
- Console.WriteLine("В диапазоне: " + a);
- }else{
- Console.WriteLine("Вне диапазона: " + a);
- }
- if (b == 2 || b == 5){
- Console.WriteLine("На границе: " + b);
- }else if (b > 2 && b < 5){
- Console.WriteLine("В диапазоне: " + b);
- }else{
- Console.WriteLine("Вне диапазона: " + b);
- }
- if (c == 2 || c == 5){
- Console.WriteLine("На границе: " + c);
- }else if (c > 2 && c < 5){
- Console.WriteLine("В диапазоне: " + c);
- }else{
- Console.WriteLine("Вне диапазона: " + c);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement