using System;
class URI {
static void Main(string[] args) {
double s=Convert.ToDouble(Console.ReadLine());
if(s>=0&&s<=25)
{
Console.WriteLine("Intervalo [0,25]");
}
else if(s>25&&s<=50)
{
Console.WriteLine("Intervalo (25,50]");
}
else if(s>50&&s<=75)
{
Console.WriteLine("Intervalo (50,75]");
}
else if(s>75&&s<=100)
{
Console.WriteLine("Intervalo (75,100]");
}
else if(s<0||s>100)
{
Console.WriteLine("Fora de intervalo");
}
}
}
No comments:
Post a Comment