From f68d9c7696ff971bdd9d572487aa949251973546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 11:19:57 -0300 Subject: [PATCH 01/18] =?UTF-8?q?Desenhando=20tri=C3=A2ngulo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- triangulo.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 triangulo.js diff --git a/triangulo.js b/triangulo.js new file mode 100644 index 0000000..ae5457d --- /dev/null +++ b/triangulo.js @@ -0,0 +1,11 @@ +var tam = prompt("Digite o tamanho do seu triângulo - "); +var velha = " "; + + for(i = 0; i < tam; i++){ + for(j = 0; j <= i; j++){ + velha += "#" + } + velha += "\n"; + } + +console.log(velha); \ No newline at end of file From 2fd2db9d15bbdf5485a8c5f7e738a625923851aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 11:20:33 -0300 Subject: [PATCH 02/18] Tabuleiro de xadrez --- xadrez.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 xadrez.js diff --git a/xadrez.js b/xadrez.js new file mode 100644 index 0000000..59c54f4 --- /dev/null +++ b/xadrez.js @@ -0,0 +1,15 @@ +var tam = prompt("Digite o tamanho do seu xadrez - "); +var xadrez = ""; + +for (i = 0; i < tam; i++) { + for (j = 0; j < 8; j++) { + if ((i + j) % 2 == 0) { + xadrez += "#"; + } else { + xadrez += " "; + } + } + xadrez += "\n"; +} + +console.log(xadrez); \ No newline at end of file From af51a8fb8bc576e11c4c456442964c18f51b925f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 11:21:12 -0300 Subject: [PATCH 03/18] =?UTF-8?q?Verificando=20Pal=C3=ADndromo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- palindromo.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 palindromo.js diff --git a/palindromo.js b/palindromo.js new file mode 100644 index 0000000..b4258d6 --- /dev/null +++ b/palindromo.js @@ -0,0 +1,19 @@ +var palavra = prompt("Digite sua palavra - "); + +var tam = palavra.length - 1; +var checa = true; + +for(i = 0; i < palavra.length; i++){ + if(palavra[i] == palavra[tam]){ + tam--; + }else{ + checa = false; + break; + } +} + +if(checa == true){ + console.log("É um palíndromo! "); +}else{ + console.log("Não é um palíndromo...") +} \ No newline at end of file From 2ef7433c14021f4b51aa4369c8db9361167181a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 11:21:38 -0300 Subject: [PATCH 04/18] Um programa diferente... --- programaDiferente.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 programaDiferente.js diff --git a/programaDiferente.js b/programaDiferente.js new file mode 100644 index 0000000..7f26a65 --- /dev/null +++ b/programaDiferente.js @@ -0,0 +1,23 @@ +var c = 0; +var msg = ""; + +for(i = 1; i <= 100; i++){ + + var a = i.toString(); + for(j = 0; j < a.length; j++){ + c += a[j]; + } + + if((c % 3) == 0){ + msg += "Fizz" + } + + if ((c % 5) == 0){ + msg += "Buzz"; + } + + console.log(i + msg); + + c = 0; + msg = " "; +} \ No newline at end of file From 5247fd98bc2d696e81a11bc676667c915bc5d169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 11:22:01 -0300 Subject: [PATCH 05/18] =?UTF-8?q?M=C3=ADnimo=20e=20M=C3=A1ximo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maxEmin.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 maxEmin.js diff --git a/maxEmin.js b/maxEmin.js new file mode 100644 index 0000000..a06970c --- /dev/null +++ b/maxEmin.js @@ -0,0 +1,21 @@ +var num1 = prompt("Digite o primeiro valor - "); +var num2 = prompt("Digite o segundo valor - "); + +function min(a, b){ + if(a < b){ + return a; + }else{ + return b; + } +} + +function max(a, b){ + if(a < b){ + return b; + }else{ + return a; + } +} + +console.log("min - "+ min(num1, num2)); +console.log("max - "+ max(num1, num2)); \ No newline at end of file From 687839badc6ff35b29a9d26ce2e4d717a8f7041b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 11:22:22 -0300 Subject: [PATCH 06/18] Recursividade --- recursividade.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 recursividade.js diff --git a/recursividade.js b/recursividade.js new file mode 100644 index 0000000..abd458d --- /dev/null +++ b/recursividade.js @@ -0,0 +1,25 @@ +var num1 = 82; +var num2 = 7; + +function mod2(number){ + if((number % 2) == 0){ + return true; + }else{ + return false; + } +} + +function mod(num, modx){ + + if(num >= modx){ + return mod(num - modx, modx); + } + if(num == 0){ + return true; + }else{ + return false; + } +} + +console.log("Divisilvel por 2? - " + mod2(num1)); +console.log("Divisilvel por " + num2 + "? - " + mod(num1, num2)); \ No newline at end of file From 9ba5f3752c1c2da826af077bb06aacb94ea1c6a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 11:22:48 -0300 Subject: [PATCH 07/18] Contando caracteres --- countChars.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 countChars.js diff --git a/countChars.js b/countChars.js new file mode 100644 index 0000000..7b5489b --- /dev/null +++ b/countChars.js @@ -0,0 +1,15 @@ +var palavra = prompt("Digite uma palavra ou frase - ") +var char = prompt("Digite um caractere - "); + +function countChars(frase, c){ + + var quant = 0; + for(i = 0; i < frase.length; i++){ + if(frase[i] == c){ + quant++; + } + } + return quant; +} + +console.log("Seu caractere apareceu " + countChars(palavra, char) + " vezes"); \ No newline at end of file From dfa55f500e609200aff9f27f083d74e7932d5acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 14:49:21 -0300 Subject: [PATCH 08/18] Trabalhando com intervalos --- intervalos.js | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 intervalos.js diff --git a/intervalos.js b/intervalos.js new file mode 100644 index 0000000..c153485 --- /dev/null +++ b/intervalos.js @@ -0,0 +1,43 @@ +var num1 = 14; +var num2 = 132; +var variacao = 4; + +function range(min, max){ + + var aux = 0; + if(min > max){ + aux = min; + min = max; + max = aux; + } + + var array = []; + aux = max - min; + for(i = 0; i <= aux ; i++){ + array[i] = min++; + } + return array; +} + +function range2(min, max, i){ + + var aux = 0; + if(min > max){ + + aux = min; + min = max; + max = aux; + } + + var array = []; + for(j = 0; j <= max ; j++){ + array[j] = min; + min += i; + if(min > max) + { break; } + } + return array; +} + +console.log(range(num1, num2)); +console.log(range2(num1, num2, variacao)); \ No newline at end of file From 24a25573656cc5676790c1c124dd55dd2664c8c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 14:49:50 -0300 Subject: [PATCH 09/18] Revertendo um array --- reverseArray.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 reverseArray.js diff --git a/reverseArray.js b/reverseArray.js new file mode 100644 index 0000000..d5a3786 --- /dev/null +++ b/reverseArray.js @@ -0,0 +1,12 @@ +var meu_array = [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0] + +function reverseArray(array){ + + var reverso = []; + for(i = 1; i <= array.length; i++){ + reverso.push(array[array.length - i]); + } + return reverso; +} + +console.log(reverseArray(meu_array)); \ No newline at end of file From 91fdd588782a0802f3f9e58082456b1be347dc7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 14:50:15 -0300 Subject: [PATCH 10/18] Trabalhando com listas --- toList.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 toList.js diff --git a/toList.js b/toList.js new file mode 100644 index 0000000..fe3cc8d --- /dev/null +++ b/toList.js @@ -0,0 +1,20 @@ +var meu_array = [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]; + +function makeRest(array, i){ + if(i < array.length){ + var tmp = { + value: array[i], + rest: makeRest(array, ++i) + }; + return tmp; + }else{ + return null; + } +} + +function toList(array){ + var list = makeRest(array, 0); + return list; +} + +console.log(toList(meu_array)); \ No newline at end of file From 709a40e481f1753b79978446d7226593616e383b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 14:50:45 -0300 Subject: [PATCH 11/18] DeepEquals --- deepEquals.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 deepEquals.js diff --git a/deepEquals.js b/deepEquals.js new file mode 100644 index 0000000..fe1ae74 --- /dev/null +++ b/deepEquals.js @@ -0,0 +1,30 @@ +var meu_obj1 = { + num: 1, + nome: "eu", + haha: null +} +var meu_obj2 = { + num: 2, + nome: "voce", + haha: null + //jaja: null +} + +function deepEquals(obj1, obj2){ + + var tmp1 = []; + for (var prop in obj1){ + tmp1.push(prop); + } + var tmp2 = []; + for (var prop in obj2){ + tmp2.push(prop); + } + if(JSON.stringify(tmp1) == JSON.stringify(tmp2)){ + return true; + }else{ + return false; + } +} + +console.log("Os objetos sao iguais? - " + deepEquals(meu_obj1, meu_obj2)); \ No newline at end of file From 3a7be38c98f02f6206250a92967ebbb37ca6ca4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 19:03:32 -0300 Subject: [PATCH 12/18] =?UTF-8?q?Verificando=20um=20n=C3=BAmero?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- verificaNum.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 verificaNum.js diff --git a/verificaNum.js b/verificaNum.js new file mode 100644 index 0000000..c8021fa --- /dev/null +++ b/verificaNum.js @@ -0,0 +1,35 @@ +var meu_num = 13; + +function forNumber(num, condicao){ + return condicao(num); +} + +function verificaImpar(num){ + return !(num % 2) == 0; +} + +/*Verifica se um número é ímpar +console.log(forNumber(meu_num, function(a){ + return !(a % 2) == 0; +}));*/ +console.log(forNumber(meu_num, verificaImpar)); + +//Verifica se o número é primo +console.log(forNumber(meu_num, function(a){ + + var num; + if(a == 1) + { return true; } + + if(verificaImpar(a)) + { num = (a - 1)/2; } + else + { num = a/2; } + + for(i = 2; i <= num; i++){ + if((a % i) == 0){ + return false; + } + } + return true; + })); \ No newline at end of file From 7037b00235aeeb72cec41744cf32aaeabba456f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 19:36:01 -0300 Subject: [PATCH 13/18] =?UTF-8?q?Transforma=C3=A7=C3=B5es=20em=20uma=20Str?= =?UTF-8?q?ing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changeString.js | 91 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 changeString.js diff --git a/changeString.js b/changeString.js new file mode 100644 index 0000000..02e20b3 --- /dev/null +++ b/changeString.js @@ -0,0 +1,91 @@ +var minha_frase = "uma frase toda minuscula para testes"; +var minha_frase2 = "OUTRA FRASE SO QUE TODA MAIUSCULA PARA TESTES"; + +function upper(array, char){ + + var tmp = array; + if(array[0] == char){ + tmp = array[0].toUpperCase() + array.slice(1); + }else{ + for(i = 1; i < array.length; i++){ + if(array[i] == char){ + tmp = array.slice(0, i) + array[i].toUpperCase() + array.slice(++i); + break; + } + } + } + return tmp; +} + +function lower(array, char){ + + var tmp = array; + if(array[0] == char){ + tmp = array[0].toLowerCase() + array.slice(1); + }else{ + for(i = 1; i < array.length; i++){ + if(array[i] == char){ + tmp = array.slice(0, i) + array[i].toLowerCase() + array.slice(++i); + break; + } + } + } + return tmp; +} + +function upperVogais(old){ + + var vogais = "aeiou"; + var novo = old; + for(j = 0; j < vogais.length; j++){ + for(i = 0; i < old.length; i++){ + novo = upper(novo, vogais[j]); + } + } + return novo; +} + +function lowerVogais(old){ + + var vogais = "AEIOU"; + var novo = old; + for(j = 0; j < vogais.length; j++){ + for(i = 0; i < old.length; i++){ + novo = lower(novo, vogais[j]); + } + } + return novo; +} + +function upperConsoantes(old){ + + var consoantes = "bcdfghjklmnpqrstvxyz"; + var novo = old; + for(j = 0; j < consoantes.length; j++){ + for(i = 0; i < old.length; i++){ + novo = upper(novo, consoantes[j]); + } + } + return novo; +} + +function lowerConsoantes(old){ + + var consoantes = "BCDFGHJKLMNPQRSTVXYZ"; + var novo = old; + for(j = 0; j < consoantes.length; j++){ + for(i = 0; i < old.length; i++){ + novo = lower(novo, consoantes[j]); + } + } + return novo; +} + +function changeString(frase, condicao){ + return condicao(frase); +} + +console.log("Vogais maiusculas - " + changeString(minha_frase, upperVogais)); +console.log("Vogais minusculas - " + changeString(minha_frase2, lowerVogais) + "\n"); +console.log("Consoantes maiusculas - " + changeString(minha_frase, upperConsoantes)); +console.log("Consoantes minusculas - " + changeString(minha_frase2, lowerConsoantes)); \ No newline at end of file From 10e4f81ffe18832be15fdae375ef65f832d90e84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 19:41:28 -0300 Subject: [PATCH 14/18] Update changeString.js --- changeString.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/changeString.js b/changeString.js index 02e20b3..b00b01a 100644 --- a/changeString.js +++ b/changeString.js @@ -9,7 +9,7 @@ function upper(array, char){ }else{ for(i = 1; i < array.length; i++){ if(array[i] == char){ - tmp = array.slice(0, i) + array[i].toUpperCase() + array.slice(++i); + tmp = array.slice(0, i) + array[i].toUpperCase() + array.slice(++i); break; } } @@ -25,7 +25,7 @@ function lower(array, char){ }else{ for(i = 1; i < array.length; i++){ if(array[i] == char){ - tmp = array.slice(0, i) + array[i].toLowerCase() + array.slice(++i); + tmp = array.slice(0, i) + array[i].toLowerCase() + array.slice(++i); break; } } @@ -88,4 +88,4 @@ function changeString(frase, condicao){ console.log("Vogais maiusculas - " + changeString(minha_frase, upperVogais)); console.log("Vogais minusculas - " + changeString(minha_frase2, lowerVogais) + "\n"); console.log("Consoantes maiusculas - " + changeString(minha_frase, upperConsoantes)); -console.log("Consoantes minusculas - " + changeString(minha_frase2, lowerConsoantes)); \ No newline at end of file +console.log("Consoantes minusculas - " + changeString(minha_frase2, lowerConsoantes)); From d79c77ffa7199361add48d0d5388c9c6c38006ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 19:45:47 -0300 Subject: [PATCH 15/18] =?UTF-8?q?Transforma=C3=A7=C3=B5es=20em=20uma=20str?= =?UTF-8?q?ing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 3a5f021b8aa3f0f3b18a7f8dc31fbab218d78650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 20:45:37 -0300 Subject: [PATCH 16/18] Criptografia --- criptografia.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 criptografia.js diff --git a/criptografia.js b/criptografia.js new file mode 100644 index 0000000..808b229 --- /dev/null +++ b/criptografia.js @@ -0,0 +1,29 @@ +var minha_frase = "Uma frase para fim de testes muahahahahha" +var td = "abcdefghijklmnopqrstuvwxyz"; + +function cifraCesar(frase, key){ + + var novo = []; + var aux; + var tmp = frase.toLowerCase(); + + for(i = 0; i < tmp.length; i++){ + for(j = 0; j < td.length; j++){ + if(tmp[i] == td[j]){ + aux = j + key; + if(aux >= td.length){ + aux = aux - td.length; + } + novo[i] = td[aux]; + break; + } + } + } + return novo.join(""); +} + +function criptografia(frase, criterio){ + return criterio(frase, 3); +} + +console.log(criptografia(minha_frase, cifraCesar)); \ No newline at end of file From 90dc7356eff479e9b7e5af5a69108faaac2d5983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 21:44:16 -0300 Subject: [PATCH 17/18] =?UTF-8?q?Ordena=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ordena.js | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 ordena.js diff --git a/ordena.js b/ordena.js new file mode 100644 index 0000000..e5318f9 --- /dev/null +++ b/ordena.js @@ -0,0 +1,47 @@ +var meu_array = [3, 5, 1, 10, 4, 2, 6]; + +//bubble sort +function ordena(array, condicao){ + + for(i = 0; i < array.length; i++){ + for(j = 0; j < array.length - 1; j++){ + if(condicao(array[j], array[j + 1])){ + var tmp = array[j]; + array[j] = array[j + 1]; + array[j + 1] = tmp; + } + } + } + return array; +} + +function par_impar(array, aux){ + var novo = []; + var j = 0; + //aux = true - numeros pares + //aux = false - numeros impares + for(i = 0; i < array.length; i++){ + if(((array[i] % 2) == 0 && aux) || ((array[i] % 2) != 0 && !aux) ){ + novo[j] = array[i]; + j++; + } + } + return novo; +} +//crescente +console.log(ordena(meu_array, function(a, b){ + return (a > b); +})); +//decrescente +console.log(ordena(meu_array, function(a, b){ + return (a < b); +})) + +//impar crescente +console.log(ordena(par_impar(meu_array, false), function(a, b){ + return (a > b); +})); +//par decrescente +console.log(ordena(par_impar(meu_array, true), function(a, b){ + return (a < b); +})); \ No newline at end of file From a49a6ba72a714058248cb7bf7c08fedcc29fb2b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicollauda=20=E2=9D=A4?= <104602677+Nicolle-Oliveira@users.noreply.github.com> Date: Sat, 22 Apr 2023 22:03:23 -0300 Subject: [PATCH 18/18] =?UTF-8?q?Fun=C3=A7=C3=B5es=20Matriciais?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- matriz.js | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 matriz.js diff --git a/matriz.js b/matriz.js new file mode 100644 index 0000000..37b1145 --- /dev/null +++ b/matriz.js @@ -0,0 +1,44 @@ +function criaMatriz(linhas, colunas, funcao){ + + var matriz = []; + for(i = 0; i < linhas; i++){ + var tmp = []; + for(j = 0; j < colunas; j++){ + tmp[j] = funcao((i + 1), (j + 1)); + } + matriz[i] = tmp; + } + + return matriz; +} + +function funcao1(i, j){ + return i + j; +} + +function funcao2(i, j){ + return i * j; +} + +function funcao3(i, j){ + return i == j ? 1 : 0; +} + +function funcao4(i, j){ + return i**2/(j+1); +} + +function funcao5(i, j){ + return i > j ? 1 : (i < j ? 5 : 0); +} + +console.log("Funcao 1"); +console.log(criaMatriz(5, 5, funcao1)); +console.log("Funcao 2"); +console.log(criaMatriz(5, 5, funcao2)); +console.log("Funcao 3"); +console.log(criaMatriz(5, 5, funcao3)); +console.log("Funcao 4"); +console.log(criaMatriz(5, 5, funcao4)); +console.log("Funcao 5"); +console.log(criaMatriz(5, 5, funcao5)); \ No newline at end of file