scanf读取数据后,用for循环打印不出结果?

#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;
}

查看全部
kb920811
kb920811
2015/09/22 05:04
  • for循环
  • printf
  • 点赞
  • 收藏
  • 回答
    私信

6个回复