Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- /**
- * Cos tu nie działa w tym stringu zgoda
- */
- public class ProgramDoZabawy {
- public static void main(String[] args) {
- Scanner in = new Scanner(System.in);
- System.out.print("Jak się nazywasz?");
- String name = in.nextLine();
- System.out.print("A ile masz lat?");
- int age = in.nextInt();
- System.out.print("Dobra to teraz zrobimy quiz. Zeby zacząć musisz wpisac dowolny wyraz.");
- String zgoda = in.nextLine();
- System.out.print("Co lubisz jeść?");
- String Jedzenie = in.nextLine();
- System.out.print("Uważasz że program jest OK?");
- String odpowiedz = in.nextLine();
- System.out.print("Co właśnie robisz?");
- String Robota = in.nextLine();
- System.out.print("To koniec ,sorka że tak mało :( Zeby skończyć wpisz 'Koniec'");
- String koniec= in.nextLine();
- System.out.println("DZIEKI ZA WYKONANIE TESTU!");
- System.out.print(" A to twoje odpowiedzi: ");
- System.out.println("Nazywasz się: " + name);
- System.out.println("Masz " + age + "lat");
- System.out.println("Lubisz jeść " + Jedzenie);
- System.out.println("Czy program jest OK? " + odpowiedz);
- System.out.println("Co właśnie robisz? " + Robota);
- System.out.println("JESZCZE RAZ DZIEKI I MILEGO DNIA!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement