[Solved] I am doing a coin toss game program. But i am having an error in this portion [ (if Guess==i) {. How do I solve this? [duplicate]

[ad_1]

You compare an Integer with a String. That obviously can not work. Convert either Guess into int or i into String.

[ad_2]

solved I am doing a coin toss game program. But i am having an error in this portion [ (if Guess==i) {. How do I solve this? [duplicate]