看板 FJU-Stat97A 關於我們 聯絡資訊
#include <stdio.h> #include <stdlib.h> int main(void) { int age; printf("請輸入整數(年齡) :>"); scanf("%d",&age); if(age<10) { printf("小朋友!\n"); } if((age<=30)&&(age>10)) { printf("年輕人!\n"); } if((age<=50)&&(age>30)) { printf("中年人!\n"); } system("pause"); return(0); } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.136.162.153