Skip to content
Snippets Groups Projects
Commit fdf1a4f8 authored by stebaga93733's avatar stebaga93733
Browse files

Add new file

parent 03a4b18a
No related branches found
No related tags found
No related merge requests found
namespace Aufgabe_2_2_Rechnung
{
using System;
internal class Program
{
static void Main(string[] args)
{
const double mmwst = 19;
double betrag;
double gesamt;
Console.Write("Betrag eingeben: ");
betrag = Convert.ToDouble(Console.ReadLine());
gesamt = betrag + (betrag * (mmwst/100));
Console.WriteLine($"Betrag: {betrag,8:f2}");
Console.WriteLine($"Mwst: {mmwst,8:f2}");
Console.WriteLine($"----------------");
Console.WriteLine($"Gesamt: {gesamt,8:f2}");
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment