CSharp - Write program to Check if a number is a positive number

Requirements

You will write a program that evaluates whether the number entered by the user is positive or not.

Demo

using System;


class Program/*from  w  w  w  .j  a v a 2  s  . com*/
{
    static void Main(string[] args)
    {
        // Input 
        Console.Write("Enter a number: ");
        string input = Console.ReadLine();
        int number = Convert.ToInt32(input);

        // Evaluation 
        if (number > 0)
        {
            Console.WriteLine("The number is positive");
        }
        else
        {
            Console.WriteLine("The number is NOT positive");
        }
    }
}

Result