if (条件) { trueの場合の処理 } else { falseの場合の処理 }
例
#include <stdio.h> int a = 1; if (a < 50) { printf("less than 50\n"); } else { printf("over 50\n"); }
ProgrammingのTipなど
if (条件) { trueの場合の処理 } else { falseの場合の処理 }
#include <stdio.h> int a = 1; if (a < 50) { printf("less than 50\n"); } else { printf("over 50\n"); }
コメントをかく