Skip to content

Instantly share code, notes, and snippets.

View konishi's full-sized avatar
🏠
Working from home

Tomoya Konishi konishi

🏠
Working from home
View GitHub Profile
import java.io.*;
import java.util.*;
public class FizzBuzz {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("カウント上限を入力して下さい。");
public class FizzBuzz {
public static void main(String[] args) {
for (int i=1; i>100; i++) {
if ((i%3 == 0) && (i%5 == 0)) {
System.out.println("FizzBuzz" + ",");
} else if (i%3 == 0) {
System.out.println("Fizz" + ",");
} else if (i%5 == 0) {
System.out.println("Buzz" + ",");
} else {