Programas
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace agencia
{
class Program
{
static void Main(string[] args)
{double destino, voleto;
double tijuana = 800, durango = 750, mexico = 1400;
double total = 0, descuento = 0;
double totalventa = 0 , efectivo;double t_tijuana = 0, t_durango = 0, t_mexico = 0, t_tijuana2 = 0, t_durango2 = 0, t_mexico2 = 0, t_tijuana3 = 0, t_durango3 = 0, t_mexico3 = 0;
double dia, realizada = 0;Console.WriteLine("A donde desea viajar?");
Console.WriteLine("Tijuana = 1 ");
Console.WriteLine("Durango = 2 ");
Console.WriteLine("Mexico = 3 ");destino = double.Parse(Console.ReadLine());
while (destino != 4)
{
if (destino == 1)
{
Console.WriteLine("Cuantosvoletos desea comprar? ");
voleto = double.Parse(Console.ReadLine());
if (voleto >= 4)
{
double costo = tijuana *voleto;
descuento = costo * 0.15;
total = costo - descuento ;
t_tijuana = t_tijuana + total;realizada = realizada + 1;
Console.WriteLine("Su total es " + total + " su descuendo fue " + descuento);
}
else{
total = tijuana * voleto;
t_tijuana = t_tijuana + total;
realizada = realizada + 1;Console.WriteLine("Su total es " + total + " su descuendo fue " + descuento);
}
}
else if...
Regístrate para leer el documento completo.