using System; class c1501 { 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"); return (0); } }