新しいページ

新しいページ
登録利用者を非表示 | ボットを非表示 | リダイレクトを表示
  • 2024年1月29日 (月) 21:112のべき乗の表 (履歴 | 編集) ‎[736バイト]AkiGoto (トーク | 投稿記録) (ページの作成:「== 2のべき乗のリストを出力するC言語のプログラム == <nowiki>#include <stdio.h> int main(int argc, char **argv) { int i; long long int n = 1; for (i = 0; i <= 32; i++) { printf("2^%d = %ld\n", i, n); n <<= 1; } return 0; } </nowiki> == 実行結果 == <nowiki>2^0 = 1 2^1 = 2 2^2 = 4 2^3 = 8 2^4 = 16 2^5 = 32 2^6 = 64 2^7 = 128 2^8 = 256 2^9 = 512 2^10 = 1024 2^11 = 2048 2^12 = 4096 2^13 = 8192 2^14 = 16384 2^15 = 32768 2^16 = 6553…」)
  • 2024年1月29日 (月) 21:05ASCIIコード表 (履歴 | 編集) ‎[1,047バイト]AkiGoto (トーク | 投稿記録) (ページの作成:「== ASCIIコード表を出力するC言語のプログラム == <nowiki>#include <stdio.h> int main(int argc, char **argv) { int i; int j; printf(" "); for (j = 2; j <= 7; j++) { printf(" %x", j); } printf("\n"); printf("\n"); for (i = 0; i <= 15; i++) { printf("%x ", i); for (j = 2; j <= 7; j++) { int c = j * 16 + i;…」)