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