Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import static java.lang.System.*;
- import java.util.Random;
- import java.util.Scanner;
- public class halo {
- public static void main(String[] args)
- {
- Scanner myScanner = new Scanner(in);
- String reponse;
- do{
- out.println("Voulez-vous dire bonjour? (Oui/Non)");
- reponse = myScanner.next();
- } while (!(reponse.equals("Oui") && reponse.equals("Non")));
- if(reponse.equals("Oui"))
- {
- out.print("C'est bien, vous êtes poli !");
- }
- else {
- out.print("Vous êtes un connard !");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement