Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _05._Invalid_Number
- {
- class Program
- {
- static void Main(string[] args)
- {
- int number = int.Parse(Console.ReadLine());
- //валидно: [100…200] или е 0 -> print
- //невалидно -> print invalid
- if ((number >= 100 && number <= 200) || number == 0)
- {
- Console.WriteLine();
- }
- else
- {
- Console.WriteLine("invalid");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment