
Practica 6.6 consola
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace practica_6._6_console
{
class Program
{
static void Main(string[] args)
{
double t, pob;
double A = 1994;
Console.WriteLine("\nAño\t\t\tpoblacion");
for (t = 9; t <= 25; t = t + 1)
{
pob = 4.88 * (1 + Math.Exp(0.02 * t));
Console.WriteLine("\n{0} \t\t\t{1}", A, pob);
A++;
}
Console.ReadLine();
}
}
}

No hay comentarios:
Publicar un comentario