int x=4; int i; for(i=1;i<=x;i++) System.out.printf("%d",i);
System.out.println("1 2 3 4");
System.out.println("numbers 1 to 4 on the same line, with each pair of adjacent number separated by one space");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)