Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class InvalidNumber
- {
- static void Main(string[] args)
- {
- double num = double.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