Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace SignОfIntegerNumbers
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num = int.Parse(Console.ReadLine());
- Print(num);
- }
- static void Print(int num)
- {
- if (num > 0)
- {
- Console.WriteLine($"The number {num} is positive.");
- }
- else if (num < 0)
- {
- Console.WriteLine($"The number {num} is negative.");
- }
- else
- {
- Console.WriteLine("The number 0 is zero.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement