Plz tell what are the errors in the following program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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 ๐Ÿ‡ฎ๐Ÿ‡ณ