Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 29th, 2012  |  syntax: C  |  size: 0.30 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include<conio.h>
  2. #include<stdio.h>
  3. main()
  4. {
  5. int num, med,soma,a,c;
  6.  printf("digite a quantidade de numeros ");
  7.  scanf("%d",&num);
  8.  a=num;
  9.  for(num=1;num<=a;num++)
  10.  {
  11.   printf("Digite os numeros");
  12.   scanf("%d",&soma);
  13.   c=soma;
  14.   med=c/a;
  15.   }
  16.   printf("a media e %d",med);
  17.  
  18.  getch();
  19.   }