摘要: #include <stdio.h> long get_long(void); int main(void) { long num; printf("please input an num: "); num = get_long(); printf("num: %ld.\n", num); retu 阅读全文
posted @ 2021-08-26 01:26 小鲨鱼2018 阅读(627) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main(void) { long num; printf("please input an positive num: "); while(1) { while(scanf("%ld", &num) != 1) { printf("please inp 阅读全文
posted @ 2021-08-26 01:06 小鲨鱼2018 阅读(310) 评论(0) 推荐(0) 编辑