Posts by xxxxxxxxxxxxxxx • 33 points
5 posts
-
1
votes3
answers68
viewsA: print a variable int in C
You need to take out the signal & (ampersand) of the second printf of your code. The right thing would be printf("\n o valor digitado foi: %d", a);…
canswered xxxxxxxxxxxxxxx 33 -
0
votes2
answers647
viewsA: Function with for()
only loop and IF comparing if its divisor is equal to 0! the divisor is equal to 0 always an even number. Passing Function PelosPares(){ for(var i = 0; i <= 6; i++) { if (i % 2 == 0) {…
-
0
votes1
answer712
viewsA: Function passing
You forgot to concatenate your sentence into console.log with the symbol of + function passandoPor() { for(var i = 0; i < 4; i++) { console.log("aqui eu tenho o valor de " + i); } }…
-
0
votes5
answers3692
viewsA: create "contain" function that says if an array contains a certain element and returns true
//this will check if the number contains in the ELEMENT NAME MATRIX. function contem(elemento,numero){ var aux = 0; for(var i=0; i<10; i++){ if (numero === elemento[i]){ aux = elemento[i]; } } if…
-
-1
votes1
answer63
viewsQ: Why can’t I save several . value in the array?
//Variaveis Globais var d = document; var Nomes = []; function processar(idTabela) //Inserir Linhas e Verificar…