Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- int rows = 11;
- int cols = 11;
- while (rows > 10){
- System.out.print("Брой редове: ");
- rows = Integer.parseInt(scan.nextLine());
- }
- while (cols > 10){
- System.out.println("Брой колони: ");
- cols = Integer.parseInt(scan.nextLine());
- }
- int[][] matrix = new int[rows][cols];
- for(int i = 0; i < rows; i++){
- for(int j = 0; j < cols; j++){
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement