Advertisement
cd62131

Nabeatsu

Jun 30th, 2014
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(void) {
  3.   char *nabeatsu[] = { "ナ", "ベ", "ア", "ツ" };
  4.   int i, n = 0;
  5.   for (i = 1; i < 30; i++) {
  6.     if (i % 3 == 0 || i % 10 == 3) printf("%s\n", nabeatsu[n++ % 4]);
  7.     else printf("%d\n", i);
  8.   }
  9.   return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement