摘要:
#include<stdio.h> int main() { int N,i,a; int sum=0; int count=0; scanf("%d",&N); do { a=N%10; N=N/10; sum=a+sum; count++; }while(N!=0); printf("%d %d 阅读全文
posted @ 2020-03-11 23:27
金桔绒绒
阅读(1543)
评论(0)
推荐(0)
摘要:
#include<stdio.h>//求整数段和 int main() { int i,a,b; int sum=0; int count=0; scanf("%d %d",&a,&b); for(i=a;i<=b;i++) { printf("%5d",i); count=count+1; if( 阅读全文
posted @ 2020-03-11 23:25
金桔绒绒
阅读(569)
评论(0)
推荐(0)
摘要:
#include<stdio.h> #include<math.h> int main() { int N; char sex; double height; int i; scanf("%d",&N); for(i=1;i<=N;i++) { getchar();//吃掉之前scanf输入的空格 阅读全文
posted @ 2020-03-11 23:23
金桔绒绒
阅读(241)
评论(0)
推荐(0)

浙公网安备 33010602011771号