using System; class c1502 { 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 Console.WriteLine(" x was positive or zero "); return (0); } }