#include"stdio.h"int main(){int a[100][100],i,j,x,n;printf("输出n组:n=");scanf("%d",&n);for(i=0;i<n;i++)for(j=0;j<=i/2;j++){if(j==0)a[i][j]=1;elsea[i][j] Read More
#include<stdio.h>#include<math.h>int factorsum(int m);int main(){int m,n;printf("Enter m n:");scanf("%d%d",&m,&n);for(m;m<=n;m++)if(m==factorsum(m))pr Read More
心得体会 熟练掌握for语句的格式:for(表达式1,表达式2,表达式3) 循环体语句 在语句没有结束之前不加分号 #include <stdio.h> int main(void){ int m,n,x,y,i; printf("enter m,n:"); scanf("%d%d",&m,&n); Read More