Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Lahjaverolaskuri {
- public static void main(String[] args) {
- Scanner lukija = new Scanner(System.in);
- System.out.println("Lahjan suuruus?");
- int luku = Integer.valueOf(lukija.nextLine());
- if (luku >= 5000 && <= 25000) {
- System.out.println("Vero: " + (100 + (luku-5000) * 0.08));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement