0
Why this is showing no output
2 odpowiedzi
+ 5
Errors:
-> Line 9 using == instead of =
-> Missing } at end of program
-> using System out.println instead of System.out.println (in 2 places)
-> if (a!b!c)?? Did you mean if (a!=b && b!=c && a!=c)?
-> if (a==b==c)? Did you mean if (a==b && b==c)?
Other observations:
-> Unnecessary extra braces {... }
-> Poor indentation formatting
+ 3
Add `public` in your outer class. Like this:
public class UserInputDemo
You will also find that your programs has a few errors. First one is using `==` instead of `=` when assigning the input value to `c`. I'll leave the rest for you to debug. Happy coding :)