Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //เฟินถังแก้ส หน้าผากเถิก ตั้งใจเรียนไอหมุอ้วน
- import java.util.Random;
- import java.util.Scanner;
- public class MainProgram {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- while (true) {
- int N = sc.nextInt();
- if (N == 999) {
- break;
- }
- Random rand = new Random();
- int fren[] = new int[50];
- for (int i = 0; i < 50; i++) {
- fren[i] = rand.nextInt(99);
- }
- int c = 0;
- for (int i = 0; i < 50; i++) {
- if (fren[i] == N) {
- c++;
- }
- }
- if (c > 0) {
- System.out.println("Your are fuck");
- } else {
- System.out.println("Sry");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment