GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Notizen

Ohne Titel

Симеон Енгьозов Englisch 1 Seite

Inhalt der Notizen (1)

Seite 1

int vehicle = int.Parse(Console.ReadLine());

double hours = double.Parse(Console.ReadLine());

if (hours <= 0) { Console.WriteLine("Error!"); } else

{ double price = 0;

double finalPrice = 0

; switch (vehicle)

{ case 1: price = 2

; break

; case 2:

price = 5

; break;

default:

Console.WriteLine("Not valid!")

; break;

} finalPrice = price * hours;

if (hours > 10) { finalPrice = finalPrice * 0.8; } Console.WriteLine(Math.Round(finalPrice

Informationen

Beschreibung
Notiz am Ohne Titel, erstellt von Симеон Енгьозов am 27/04/2026.
Erstellt von
Симеон Енгьозов · Apr 2026
Aktualisiert
27 Apr 2026
Aufrufe
1
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck