Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

IVA

using System.IO;
using System;

class IVA
{
    static void Main()
    {
        //Programa de cálculo de IVA, elaborado por Clarisa.
        //declaración de variables
        int precio=0;
        int iva=0;
        int total=0;
        
        Console.WriteLine("Introduce el precio sin IVA.");
        precio=Convert.ToInt32(Console.ReadLine());
        
        iva=Convert.ToInt32(precio*0.15);
        
        total=Convert.ToInt32(precio+iva);
        
        Console.WriteLine("El total a pagar es de $" + total + ", en el que $" + iva + " fueron del 15% de IVA del precio inicial.");
        
        Console.ReadKey();
    }
}

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.