Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Seminar_1;
- import java.util.Scanner;
- public class Task_3 {
- public static void main(String[] args){
- Scanner input = new Scanner(System.in);
- int rows, columns;
- System.out.print("specify number of rows: ");
- rows = input.nextInt();
- System.out.print("Specify number of columns: ");
- columns = input.nextInt();
- for (int i = 0; i < rows; i++) {
- for (int j = 0; j < columns; j++){
- System.out.print("x");
- }
- System.out.printf("%n");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement