output i want to generate:Code:public class test {
public static void main(String[] args) {
int i =0 ;
for( i =0 ; i<=25; i++)
{
System.out.printf("%d", i);
(i%5==0)?System.out.println():System.out.print(" ");
}
}
0 1 2 3 4
5 6 7 8 9
...
P.S. sorry the title is incorrect, it should be (i%5==0) instead

