Skip to main content
1 of 2
Anthony
  • 131
  • 3

C#: 147 Characters

It won't beat most other languages, but here's a C# solution for fun:

var r=new Random().Next(1,100);var d=true;while(d){var g=int.Parse(Console.ReadLine());Console.WriteLine(""+g+'\n'+(g<r?'+':g>r?'-':'='));d=g!=r;}
Anthony
  • 131
  • 3