
Untitled
By: a guest on
May 2nd, 2012 | syntax:
C | size: 0.65 KB | hits: 16 | expires: Never
#include<conio.h>
#include<stdio.h>
int main ()
{
char ch;
ch='\0';
while (ch!='q')
{
int vet[10], num, med,maior;
med=0;
maior=0;
num=0;
for(num=1;num<=10;num++)
{
printf("digite o numero ");
scanf("%d",&vet[num]);
med=(vet[num]+med)/10;
if (vet[num]>=med)
{
for(maior=0;;maior++)
{
printf("o valor e %d ", maior);
}
}
}
ch= getch();
}
getch();
}