public class Solution {
public static void main(String[] args) throws Exception {
Scanner sc1 = new Scanner(System.in);
String name = sc1.nextLine();
for (int x == 0; x <10; x++) {
System.out.println(name + " loves me.");
}
}
}
Can someone spot a mistake?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Kamil
14 December 2019, 10:18
In loop for you should use just "=" instead of "==" :)
+1