摘要:
1.编写程序,统计字符串中大写字母的个数。 #include<stdio.h> main(){ char a[10]; int b=0,c=0; gets(a); while(a[b]!='\0') { if(a[b]>='A'&&a[b]<='Z') c++; b++; } printf("%d\ 阅读全文
posted @ 2021-12-06 20:37
czy风继续吹
阅读(29)
评论(0)
推荐(0)
摘要:
1.编写程序,判断一个数n是正数还是负数。 #include<stdio.h> main(){ int n; scanf("%d",&n); if(n>0) printf("正"); else if(n==0) printf("非正非负"); else printf("负"); } 2.编写程序,计 阅读全文
posted @ 2021-12-06 20:34
czy风继续吹
阅读(15)
评论(0)
推荐(0)

浙公网安备 33010602011771号