This commit is contained in:
Mykola Fesenko
2025-07-29 09:05:07 +02:00
parent ce8e5eb3fe
commit 721931ac60
68 changed files with 608 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
public class Kraftstoffverbrauch {
public static void main(String args[]){
double gefahreneKm = 437;
double verbrauchterKraftstoff = 28.9;
double verbrauch100Km = (verbrauchterKraftstoff / gefahreneKm) * 100;
System.out.println("Gefahrene KM: " + gefahreneKm);
System.out.println("Verbrauchter Kraftstoff: " + verbrauchterKraftstoff +" Liter");
System.out.println("Verbrauch je 100km: " + verbrauch100Km + " Liter je 100Km");
}
}