This repository has been archived by the owner on Apr 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ex-11.por
64 lines (50 loc) · 1.21 KB
/
Ex-11.por
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
programa
{
real n1, n2, n3, n4, n5, n6, n7, n8, n9, n10
funcao inicio()
{
escreva("Digite o primeiro número: ")
leia(n1)
limpa()
escreva("Digite o segundo número: ")
leia(n2)
limpa()
escreva("Digite o terceiro número: ")
leia(n3)
limpa()
escreva("Digite o quarto número: ")
leia(n4)
limpa()
escreva("Digite o quinto número: ")
leia(n5)
limpa()
escreva("Digite o sexto número: ")
leia(n6)
limpa()
escreva("Digite o setimo número: ")
leia(n7)
limpa()
escreva("Digite o oitavo número: ")
leia(n8)
limpa()
escreva("Digite o nono número: ")
leia(n9)
limpa()
escreva("Digite o decimo número: ")
leia(n10)
limpa()
real calc = (n1 + n2 + n3 + n4 + n5 + n6 + n7 + n8 + n9 + n10) / 10
escreva("A média dos 10 números é: " + calc)
}
}
/* $$$ Portugol Studio $$$
*
* Esta seção do arquivo guarda informações do Portugol Studio.
* Você pode apagá-la se estiver utilizando outro editor.
*
* @POSICAO-CURSOR = 684;
* @PONTOS-DE-PARADA = ;
* @SIMBOLOS-INSPECIONADOS = ;
* @FILTRO-ARVORE-TIPOS-DE-DADO = inteiro, real, logico, cadeia, caracter, vazio;
* @FILTRO-ARVORE-TIPOS-DE-SIMBOLO = variavel, vetor, matriz, funcao;
*/