write a c program to check whether a number is negative positive or zero 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");
}
}
}