0
<SOLVED> This entire code isnt working and I have no idea why
I havent coded in awhile and its really fucking pissing me off that I can't get this to work even though nothing looks wrong import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner GPA = new Scanner(System.in); double score = GPA.nextDouble(); // your code goes here if(score<=3.5) { System.out.prinln(Sorry); } else { System.out.println(Congratulations); } } }
2 ответов
+ 2
A few errors:
- prinln() is not a function, you mean println() right?
- Sorry and Congratulations need to be enclosed in quotation marks to be strings.
Try these, and run the program again.
It would be appreciated if you removed the swears - they aren't necessary.
+ 1
Thanks My mind is foggy and im very upset right now and I forgot it was all the quotation marks