摘要: 1.编写程序判断n是正数还是负数。 #include <stdio.h> main() { float n; printf("输入一个数:"); scanf("%f",&n); if(n>0) printf("正数\n"); else if(n==0) printf("既不是正数也不是负数\n"); 阅读全文
posted @ 2021-10-29 17:28 陌辰1 阅读(5) 评论(0) 推荐(0) 编辑