What is the output of following Java language code?
public class Main
{
public static void main(String[] args) {
int c = 1;
while (c<= 5) {
System.out.println(c % 5 ==1?"--" : "@@@@");
++c;
}
}}
1
--
@@@@
@@@@
@@@@
@@@@
2
--
@@@@
@@@@
--
--
3
@@@@
@@@@
@@@@
--
--
4
--
--
@@@@