Created
December 15, 2018 03:02
-
-
Save ivanelson/5a0945f80673b036dd73542ce5e36f10 to your computer and use it in GitHub Desktop.
vetor em "C"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main () { | |
float notas[10]; | |
int indice; | |
printf("Lendo as notas:\n"); | |
for (indice = 0; indice < 10; indice++) | |
{ | |
printf("Digite a nota do aluno: "); | |
scanf("%f", ¬as[indice]); | |
} | |
printf("Exibindo as notas digitadas: \n"); | |
for (indice = 0; indice < 10; indice++) { | |
printf("A nota %f foi armazenada na posicao %d do vetor.\n",notas[indice], indice); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment