0
I had already asked the question but I informed the wrong question. Anyway, I need to make a program to automatically generate numbers between 0 and 99 of a bingo card (5x5) and cannot generate repeated numbers within the cards I’ve tried my hand and so far it’s working and I couldn’t understand the examples I looked for (q are usually in C) LAST THING I DID ...
para i de 0 ate 4 passo 1 faca
para j de 0 ate 4 passo 1 faca
se (cartela[i,j]+1 <> cartela[i,j]) entao
cartela[i,j] <- randi(99)
fimse
fimpara
fimpara
para i de 0 ate 4 passo 1 faca
para j de 0 ate 4 passo 1 faca
escreva(cartela[i,j])
fimpara
escreval("")
fimpara
By the mathematics I know cartela[i,j]+1 will always be different from cartela[i,j]. Your SE command makes no sense.
– anonimo