This commit is contained in:
Mykola Fesenko
2025-07-29 08:08:23 +02:00
commit 899a05907b
355 changed files with 11002 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import java.util.Scanner;
public class BruttoNetto {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
int gehalt = 3000;
double steuer = 19.0;
System.out.print("Gehalt = ");
if(input.hasNextInt()) {
gehalt = input.nextInt();
}
System.out.print("Steuer = ");
if(input.hasNextDouble()) {
steuer = input.nextDouble();
}
steuer = steuer * .01;
steuer = steuer + 1;
System.out.println("End Gehalt: " + (gehalt/steuer));
System.out.println("Steuer: " + ((double)gehalt * (steuer -1)));
}
}