//#include "stdafx.h"//vc++6.0加上这一行.
#include "stdio.h"
void main(void){
int n;
scanf("%d",&n);
printf("The result is %d\n",n*n);
}
#include
int main()
{
int n,i,sum=0;
scanf("%d",&n);
for(i=1;i
sum+=i*2;
}
printf("%d\n",sum+i);
return 0;
}
这很神奇,居然是n^2