/
Program.cs
42 lines (34 loc) · 1.33 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using comidita.clasescomi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using comidita.clasescomi;
namespace comidita
{
class Program
{
static void Main(string[] args)
{
factura factura = new factura();
cliente cliente = new cliente();
producto producto = new producto();
Console.WriteLine("Ingrese Identificación: ");
cliente.Identificacion = int.Parse(Console.ReadLine());
Console.WriteLine("Ingrese Nombre: ");
cliente.Nombre = Console.ReadLine();
Console.WriteLine("Ingrese Dirección: ");
cliente.Direccion = Console.ReadLine();
Console.WriteLine("Ingrese Telefono: ");
cliente.Telefono = int.Parse(Console.ReadLine());
Console.WriteLine("Ingrese el codigo del producto: ");
producto.Codigo = int.Parse(Console.ReadLine());
Console.WriteLine("Subtotal: "+factura.Subtotal);
Console.WriteLine("Iva: "+factura.Iva);
Console.WriteLine("Ingrese descuento"+factura.Descuento);
factura.Descuento = int.Parse(Console.ReadLine());
Console.WriteLine("Total final"+factura.Total);
}
}
}