复制代码
/* Note:Your choice is C IDE */
#include "stdio.h"
void main()
{
   int a=1,sum=0;
    
    for(;a<=100;a+=2)
   {
       
       sum+=a;
       printf("%d\n",sum);
   }
   
    for(a=1;a<=100;a++)
   {
       
       sum=a*a;
       printf("%d*%d=%d\n",a,a,sum);
   }
}
复制代码