Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1.  
  2. import java.util.Scanner;
  3.  
  4. public class Lahjaverolaskuri {
  5.  
  6. public static void main(String[] args) {
  7. Scanner lukija = new Scanner(System.in);
  8.  
  9. System.out.println("Lahjan suuruus?");
  10. int luku = Integer.valueOf(lukija.nextLine());
  11.  
  12. if (luku >= 5000 && <= 25000) {
  13. System.out.println("Vero: " + (100 + (luku-5000) * 0.08));
  14.  
  15. }
  16.  
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement