Tema: Sugerencias
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/10/2011, 01:54
Avatar de baker1562
baker1562
 
Fecha de Ingreso: marzo-2011
Ubicación: Puntarenas
Mensajes: 261
Antigüedad: 13 años, 1 mes
Puntos: 9
Respuesta: Sugerencias

Código C#:
Ver original
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication2
  7. {
  8.    class Program
  9.    {
  10.       static void Main(string[] args)
  11.       {
  12.          int[] numeros = new int[10];
  13.  
  14.          int x, promedio = 0;
  15.          int temp;
  16.  
  17.          int suma = 0;
  18.  
  19.          for (x = 0; x < numeros.Length; x++)
  20.          {
  21.             Console.Write("Teclea un Número"+(x+1)+":");
  22.             numeros[x] = Convert.ToInt32(Console.ReadLine());
  23.  
  24.             promedio += numeros[x];
  25.             suma = promedio / numeros.Length;
  26.  
  27.          }
  28.  
  29.          Console.WriteLine("\nEl Promedio es: "  +suma);
  30.          Console.ReadKey();
  31.       }
  32.    }
  33. }

Ahi esta arreglado =)