Hi,
i didnt know how to use loop while twice, so i decided to use 'if'.
I suppose that was a bad idea. In IntelliJ IDEA program works and prints good result.
When I want to do this on this page , this print me following errors:
Caused by: java.lang.ClassNotFoundException: pl.codegym.task.task04.task0433.Solution
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
int i = 1;
int j = 1;
while (i <= 100)
{
if (i % 10 != 0)
System.out.print("$");
else
System.out.println();
i++;
}
}
}