Advertisement
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 Task2959
- {
- class Program
- {
- static void Main(string[] args)
- {
- double x = double.Parse(Console.ReadLine()); // Считываем число
- if (x > 0) // Проверяем условия из задачи
- Console.WriteLine(1);
- else if (x < 0)
- Console.WriteLine(-1);
- else
- Console.WriteLine(0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement