8.1.. Napisati program da ispisuje 3 puta u 3 reda IME sa razmakom.
Listing programa :
package zadatak;
import java.util.Scanner;
public class P08114001 {
public static void main(String[] args) {
Scanner input = new Scanner (System.in);
System.out.println("ispis sa dvije for petlje");
for (int i=1; i<= 3; i++){
for (int j=1; j<= 3; j++){
System.out.print("IME ");
}
System.out.println();
}
}}
Ispis na ekranu:
Index
|