write a c program to check whether the given number is positive or negative code example
Example: #pass positive or negative c
using System;
class MainClass {
public static void Main (string[] args) {
int x = int.Parse(Console.ReadLine());
if(x > 0)
{
Console.WriteLine ("positive");
}
if(x < 0)
{
Console.WriteLine ("negative");
}
if(x == 0)
{
Console.WriteLine ("zero");
}
}
}