+ 11

Plz tell what are the errors in the following program

https://code.sololearn.com/cobVRk3S75uo/?ref=app

22nd Oct 2020, 1:40 PM
𝑹𝒂𝒔𝒉𝒊🪷
𝑹𝒂𝒔𝒉𝒊🪷 - avatar
5 Antworten
+ 5
Line 6: Scanner sc = new Scanner(System.in); Notice I removed the space after `System.in` Please tag Java only, no need to tag `importjava.util.*;class` ☝ Edit: Code has been updated Tags have been updated 👍👍👍
22nd Oct 2020, 1:58 PM
Ipang
+ 7
Thanq Ipang I didn't noticed that.....thanq so much brother🤗
22nd Oct 2020, 2:16 PM
𝑹𝒂𝒔𝒉𝒊🪷
𝑹𝒂𝒔𝒉𝒊🪷 - avatar
+ 6
Martin Taylor I tried compiling the program after removing the space...nd by using '%' instead of '/' ......nd it gave the correct output......thnks for ur answer...
23rd Oct 2020, 5:20 AM
𝑹𝒂𝒔𝒉𝒊🪷
𝑹𝒂𝒔𝒉𝒊🪷 - avatar
+ 3
You're welcome 👌 I also wonder why that one space should cause a problem. I thought it'd be ignored instead. Hope someone who knows why can answer here ...
22nd Oct 2020, 2:18 PM
Ipang
+ 1
I guess only issue in SoloLearn..
22nd Oct 2020, 2:35 PM
Jayakrishna 🇮🇳