lucast0rres

Lista4 - 9

May 18th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. ALGORITMO
  2.     DECLARE j, soma, vetor[100] NUMERICO
  3.  
  4.     soma <- 0
  5.    
  6.     PARA j <- 1 ATÉ 100 FAÇA:
  7.         ESCREVA "Digite o ",j,"o valor numerico: "
  8.         LEIA vetor[j]
  9.    
  10.     PARA j <- 1 ATÉ 50 FAÇA:
  11.         soma <- soma + (vetor[j] - vetor[101-j]) * (vetor[j] - vetor[101-j] * (vetor[j] - vetor[101-j]
  12.    
  13.     ESCREVA "O valor do somatorio eh: ", soma
  14.    
  15. FIM_ALGORITMO
Add Comment
Please, Sign In to add comment