Skip to main content
2 of 2
added 10 characters in body
Anthony
  • 131
  • 3

C#: 147 136 Characters

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

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