Programas

Páginas: 3 (513 palabras) Publicado: 25 de noviembre de 2013
using System;
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...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Programa
  • Program
  • Un Programa
  • Programas
  • Programas
  • Programa
  • Programador
  • Program

OTRAS TAREAS POPULARES

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS