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