摘要: #include <stdio.h> int main() { int a,b,c,m,t; printf("请输入两个数:\n"); scanf("%d%d",&a,&b); if(a<b) { t=a; a=b; b=t; } m=a*b; c=a%b; while(c!=0) { a=b; b 阅读全文
posted @ 2021-06-14 10:24 myrj 阅读(185) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main(){ char c; //用户输入的字符 int shu=0;//字符总数 int letters=0, // 字母数目 space=0, // 空格数目 digit=0, // 整数数目 others=0; // 其他字符数目 printf( 阅读全文
posted @ 2021-06-14 09:35 myrj 阅读(2261) 评论(0) 推荐(0) 编辑