This file contains 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> | |
#define MAX 100 | |
int main(){ | |
float v[MAX]; | |
int i, n, media = 0, contaMaior = 0, contaMenor = 0; | |
scanf("%d", &n); | |
for(i=0; i<n; i++){ | |
scanf("%f", &v[i]); |
This file contains 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> | |
#define MAXVETOR 20000 | |
int main (){ | |
int v[MAXVETOR]; | |
int i; | |
for(i=1; i<=MAXVETOR; i++) | |
v[i - 1] = i; |
This file contains 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> | |
#define MAX 20000 | |
int main (){ | |
int i; | |
int x[MAX]; | |
for(i=0;i<MAX;i++){ | |
x[i] = i+1;} |