Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.*;
- public class testi1 {
- public static void main( String [ ] args) {
- Scanner lukija;
- lukija = new Scanner(System.in);
- double weight;
- double height;
- double age;
- String Carlicense;
- System.out.print("How much is your weight: ");
- weight = lukija.nextDouble();
- System.out.print ("How much is your height: ");
- height = lukija.nextDoable();
- System.out.print ("How old are you: ");
- age = lukija.nextDouble();
- System.out.println ("Käyttäjän tiedot:");
- System.out.println ("Ikä" );
- System.out.println ("Paino" );
- System.out.println ("Pituus" );
- if (CarLicense("Yes"){
- System.out.printIn("Sinulla on ajokortti: ");
- }else{
- System.out.printIn("Sinulla ei ole ajokorttia: "); }
- System.out.println();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement