Skip to content

Commit

Permalink
Finalizei a aula 11
Browse files Browse the repository at this point in the history
  • Loading branch information
sodiuz committed Feb 14, 2025
1 parent af53f8e commit c64a6e6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
10 changes: 10 additions & 0 deletions algoritmos/algoritmos/aula11/COMBINACOES.ALG
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
algoritmo "combinacoes"
var
C1, C2 : Inteiro
inicio
Para C1 <- 1 ate 3 faca
Para C2 <- 1 ate 3 faca
Escreval (C1, C2)
FimPara
FimPara
fimalgoritmo
19 changes: 19 additions & 0 deletions algoritmos/algoritmos/aula11/QUANTOSENTRE0E10.ALG
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
algoritmo "quantosentre0e10"
var
C, V, Tot010, SImp : Inteiro
inicio
Tot010 <- 0
SImp <- 0
Para C <- 1 ate 6 faca
Escreva("Digite um valor: ")
Leia(V)
Se (V >= 0) e (V <= 10) entao
Tot010 <- Tot010 + 1
FimSe
Se (V % 2 = 1) entao
SImp <- SImp + V
FimSe
FimPara
Escreval("Ao todo foram ", Tot010, " valores entre 0 e 10")
Escreval("Nesse intervalo, a soma de �mpares foi: ", SImp)
fimalgoritmo

0 comments on commit c64a6e6

Please sign in to comment.