摘要:
1.大小字母转换: #include <stdio.h> int main() { char str[10]; int i=0; gets(str); while(str[i]) { if(str[i]>='a'&&str[i]<='z') str[i]=str[i]-32; else if(str 阅读全文
摘要:
1. do...while循环: #include <stdio.h> int main() { int i = 1; int sum = 0; do{ sum+=i; i++; }while(i<=100); printf("%d\n",sum); } 2. while循环: #include < 阅读全文