Skip to content

Instantly share code, notes, and snippets.

View mo-karbalaee's full-sized avatar

Mohammad Karbalaee mo-karbalaee

View GitHub Profile
const prompt = require("prompt-sync")();
let rowsQuantity;
let columnsQuantity;
let matrix = [];
function getRowAndColumn(){
rowsQuantity = parseInt(prompt('how many rows does your matrix have? '));
columnsQuantity = parseInt(prompt('how many columns does your matrix have? '));