#include
int main(void)
{
int i;
int uplimit,downlimit;
printf("please enter the uplimit and downlimit of positive integer: \n");
scanf("%d %d",&uplimit,&downlimit);
for (i=downlimit;i<=uplimit;i++)
printf("%5d%5d%5d \n",i,i*i,i*i*i);
return 0;
}
你这看起来没什么问题,是不是输入的时候上下限写反了
为什么你的for循环不用代码快用{}起来
可以打印啊
或许是输入时的问题,输入写反了,或是格式
为啥我看不见代码后半段