1 / 4

VETORES

VETORES. O que é um Vetor? Vetores são variáveis compostas que armazenam uma sequência de variáveis do mesmo tipo que são identificadas pelo mesmo nome; Sintaxe: algoritmo “ semnome ” var vet : vetor[1..10] de inteiro inicio fimalgoritmo. algoritmo “ semnome ” var

vea
Télécharger la présentation

VETORES

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. VETORES

  2. O que é um Vetor? Vetores são variáveis compostas que armazenam uma sequência de variáveis do mesmo tipo que são identificadas pelo mesmo nome; Sintaxe: algoritmo “semnome” var vet: vetor[1..10] de inteiro inicio fimalgoritmo

  3. algoritmo “semnome” var vet: vetor[1..3] de inteiro Inicio vet[1]<-10 vet[2]<-3 vet[3]<-5 escreval(vet[1]) // será impresso 10 escreval(vet[2]) // será impresso 3 fimalgoritmo

  4. EXERCÍCIOS Faça um cadastro de clientes com nome e CPF utilizando um vetor de 10 posições e exiba no final o nome e o CPF de cada cliente Utilizando vetor faça um algoritmo que leia a nota de 5 alunos e faça a média de todas as notas

More Related