{"blog_title":"\u308f\u3055\u3063\u304dhb","author_name":"takehikom","width":"100%","type":"rich","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","categories":["computing","\u6388\u696d"],"image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakehikom.hateblo.jp%2Fentry%2F20170418%2F1492462772\" title=\" C\u304b\u3089Java\u3078 - \u308f\u3055\u3063\u304dhb\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u3044\u304d\u306a\u308a\u3067\u3059\u304c\u554f\u984c\u3067\u3059\uff0e\u6b21\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\uff0cJava\u3067\u66f8\u304d\u76f4\u3057\u307e\u3057\u3087\u3046\uff0e /* ordinal.c */ #include <stdio.h> int main(void) { int n; for (n = 1; n <= 120; n++) { int d1 = n % 10; int d10 = (n / 10) % 10; printf(\"%d\", n); if (d10 == 1) { puts(\"th\"); } else if (d1 == 1) { puts(\"st\"); } else if (d1 == 2) { puts(\"nd\"); } else if (d1 == 3) {\u2026","height":"190","title":" C\u304b\u3089Java\u3078","version":"1.0","url":"https://takehikom.hateblo.jp/entry/20170418/1492462772","published":"2017-04-18 05:59:32","author_url":"https://blog.hatena.ne.jp/takehikom/","blog_url":"https://takehikom.hateblo.jp/"}