using System; class if03 { static int Main() { float x ; string line; Console.WriteLine(" Type in a number"); line=System.Console.ReadLine(); x=(float)double.Parse(line); if ( x < 0 ) Console.WriteLine(" x was negative"); else if (x > 0) Console.WriteLine(" x was positive"); else Console.WriteLine(" x was zero"); return (0); } }