摘要: #include<stdio.h> main() { char str[20]; int i,cnt; cnt=i=0; gets(str); while(str[i]!='\0') { if(str[i]>='A'&&str[i]<='Z') cnt++; i++; } printf("大写字母个 阅读全文
posted @ 2021-11-24 23:11 微笑|哈哈 阅读(31) 评论(0) 推荐(0)
摘要: #include<stdio.h> main() { double m[8]; int i; for(i=0;i<=7;i++) scanf("%lf",&m[i]); for(i=7;i>=0;i--) printf("%f",m[i]); } #include<stdio.h> main() { 阅读全文
posted @ 2021-11-24 23:10 微笑|哈哈 阅读(32) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> int main() { int a,n; srand((unsigned)time(NULL)); a=rand()%100; printf("%d\n",a); while(1){ sca 阅读全文
posted @ 2021-11-24 23:08 微笑|哈哈 阅读(30) 评论(0) 推荐(0)
摘要: #include<stdio.h> main() { char str[20]; int i,cnt; cnt= i=0; gets(str); while(str[i]!='\0') { if(str[i]>='A'&&str[i]<='Z') cnt++; i++; } printf("大写字母 阅读全文
posted @ 2021-11-24 23:06 微笑|哈哈 阅读(33) 评论(0) 推荐(0)
摘要: #include<stdio.h> main() { double m[8]; int i; for(i=0;i<=7;i++) scanf("%lf",&m[i]); for(i=7;i>=0;i--) printf("%f",m[i]); } #include<stdio.h> main() { 阅读全文
posted @ 2021-11-24 23:05 微笑|哈哈 阅读(40) 评论(0) 推荐(0)
摘要: #include<stdio.h> main() { int a=1,sum=0; while(a<=21){ if (a%2!=0){ printf("%d ",a); sum+=a; } a++; } printf("\n从1到21的奇数的总和为%d\n",sum); } #include<st 阅读全文
posted @ 2021-11-24 23:01 微笑|哈哈 阅读(16) 评论(0) 推荐(0)
摘要: #include<stdio.h> main(){ int i,j,k; for(i=1;i<=5;i++) { for(k=1;k<=i;k++) printf("*"); printf("\n"); } } #include<stdio.h> main(){ int i,j,k; for(i=1 阅读全文
posted @ 2021-11-24 22:57 微笑|哈哈 阅读(25) 评论(0) 推荐(0)