#include <stdio.h> void fizzbuzz(int n) { int next; int i = 1; do { printf(i % 15 ? i % 5 ? i % 3 ? "%d\n" : "Fizz\n" : "Buzz\n" : "FizzBuzz\n", i); if (i++ >= n) next = 0; } while (next); } int main(void) { printf((char[]){""}); // ãã®ä½ç½®ã«printfãç¡ãã¨ãªããåããªã fizzbuzz(100); } gcc 10.1.0 ã使ç¨ããã³ã³ãã¤ã©ãæç¥ãããã¹ã«ã¯è¦åãåºåãã¦ãããæ§ -Wall -Wextra ãæå®ããæé©åæ示ãªãã§ã³ã³ãã¤ã«ãåä½ãããã¨ããåä½ããã Wandboxã§å®è¡ main() ã®ä¸ã®ä½ãåºåãã¦ããªã printf(
{{#tags}}- {{label}}
{{/tags}}