switch述句
ID 查询练习
输入一个ID对应一个用户
#include <stdio.h> int main() { int id; printf("Please inter a Id:"); scanf("%d", &id); switch (id) { case 3: printf("jhon\n"); break; case 7: printf("qiqi\n"); break; case 10: printf("fangxu\n"); break; default: printf("Not found\n"); } return 0; }