Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace InvalidNumber
- {
- using System;
- class InvalidNumber
- {
- static void Main()
- {
- var num = int.Parse(Console.ReadLine());
- var inRange = (num >= 100 && num <= 200) || num == 0;
- if (!inRange)
- {
- Console.WriteLine("invalid");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement