KPs Dejtprogram
unknown
java
a month ago
1.6 kB
2
Indexable
Never
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); boolean isNotCheating = false; int goOnDate = 0; int isPromiseMade = 0; int isTen = 0; while(!isNotCheating) { System.out.println("Are you going on a date?\n1. Yes\n2. No"); goOnDate = scanner.nextInt(); if(goOnDate == 1) { System.out.println("Have you made any promises to any hoes?\n1. Yes\n2. No"); isPromiseMade = scanner.nextInt(); if(isPromiseMade == 1) { System.out.println("Is the new girl a ten?\n1. Yes\n2. No"); isTen = scanner.nextInt(); if(isTen == 1) { System.out.println("Do it! Tens are unicorns!"); isNotCheating = true; } else { System.out.println("Don't do it, you're not a cheater!"); isNotCheating = true; } } else { System.out.println("Do what you want king, you are a strong independent and free man!"); isNotCheating = true; } } else { System.out.println("Fair enough, have a nice day!"); isNotCheating = true; } } } }