-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFizzBuzz Java UwU.java
More file actions
72 lines (60 loc) · 1.68 KB
/
FizzBuzz Java UwU.java
File metadata and controls
72 lines (60 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
Welcome to JDoodle!
You can execute code here in 88 languages. Right now you’re in the Java IDE.
1. Click the orange Execute button ▶ to execute the sample code below and see how it works.
2. Want help writing or debugging code? Type a query into JDroid on the right hand side ---------------->
3.Try the menu buttons on the left. Save your file, share code with friends and open saved projects.
Want to change languages? Try the search bar up the top.
*/
public class MyClass {
public static void main(String args[]) {
int x = 15;
int y = 5;
int z = 3;
int v = 19;
if (x % 15 == 0) {
System.out.println("Fizzbuzz");
}
else if (x % 5 == 0) {
System.out.println("Buzz");
}
else if (x % 3 == 0) {
System.out.println("Fizz");
}
else
System.out.println("Meow Meow Meow Crack Meow");
if (y % 15 == 0) {
System.out.println("Fizzbuzz");
}
else if (y % 5 == 0) {
System.out.println("Buzz");
}
else if (y % 3 == 0) {
System.out.println("Fizz");
}
else
System.out.println("Meow Meow Meow Crack Meow");
if (z % 15 == 0) {
System.out.println("Fizzbuzz");
}
else if (z % 5 == 0) {
System.out.println("Buzz");
}
else if (z % 3 == 0) {
System.out.println("Fizz");
}
else
System.out.println("Meow Meow Meow Crack Meow");
if (v % 15 == 0) {
System.out.println("Fizzbuzz");
}
else if (v % 5 == 0) {
System.out.println("Buzz");
}
else if (v % 3 == 0) {
System.out.println("Fizz");
}
else
System.out.println("Meow Meow Meow Crack Meow");
}
}