#include <stdio.h>
int Square(int i)
{
return i*i;
}
int main()
{
int i = 0;
i = Square(i);
for(;i<3;i++)
{
static int i = 1;
i +=Square(i);
printf("%d****\n",i); // 对于这里输出2,6,42比较疑惑
}
printf("%d\n",i);
return 0;
}
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
int main( void )
{
int num;
int n ;
int times = 0;
srand(time(NULL));
num = rand()%100+1;
for(times=1;times<=10;times++)
{
printf("Please input a number:\n");
scanf("%d",&n);
if...