Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. import java.io.*;
  2. import java.util.*;
  3. public class testi1 {
  4. public static void main( String [ ] args) {
  5.  
  6. Scanner lukija;
  7. lukija = new Scanner(System.in);
  8. double weight;
  9. double height;
  10. double age;
  11. String Carlicense;
  12.  
  13. System.out.print("How much is your weight: ");
  14. weight = lukija.nextDouble();
  15. System.out.print ("How much is your height: ");
  16. height = lukija.nextDoable();
  17. System.out.print ("How old are you: ");
  18. age = lukija.nextDouble();
  19.  
  20. System.out.println ("Käyttäjän tiedot:");
  21. System.out.println ("Ikä" );
  22. System.out.println ("Paino" );
  23. System.out.println ("Pituus" );
  24.  
  25. if (CarLicense("Yes"){
  26. System.out.printIn("Sinulla on ajokortti: ");
  27. }else{
  28. System.out.printIn("Sinulla ei ole ajokorttia: "); }
  29. System.out.println();
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement