摘要: 1.编写程序,判断一个数n是正数还是负数。 #include<stdio.h>main(){float n;scanf("%f",&n);if(n>0)printf("正数!\n");else if(n==0)printf("0既不是正数,也不是负数!\n");elseprintf("负数\n"); 阅读全文
posted @ 2021-10-19 21:05 吕洪阳 阅读(17) 评论(0) 推荐(0)