Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Online C compiler to run C program online
- /* Exemplo Vetor
- */
- #include <stdio.h>
- void main() {
- int vetor[8];
- int num = 10;
- for (int i = 0;i<=7;i++) {
- vetor[i]=num;
- num = num+10;
- }
- for (int i = 0;i<=7;i++) {
- printf("Vetor na posicao %i vale %i \n",i,vetor[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement