C语言实现宿舍分配方案计数
#include <stdio.h>
int main() { int n; printf("请输入学生数量:"); scanf("%d", &n);
int count = 0;
for (int i = 1; i <= n; i++) {
count++;
}
printf("共有%d种宿舍分配方案。\n", count);
return 0;
}
原文地址: https://www.cveoy.top/t/topic/o7ZH 著作权归作者所有。请勿转载和采集!