阳光雨露哺育它的意思:用for语句输出九九乘法表问题。

来源:百度文库 编辑:高考问答 时间:2024/05/04 05:52:30
#include "stdio.h"
#include "conio.h"

main()
{
int i,j;
for (i=1;i<10;i++)
printf("%4d",i);
printf("\n_____________________________________\n");
for (i=1;i<10;i++) /*第一行*/
for (j=1;j<10;j++) /*第二行*/
if (j==9) printf("%4d\n",i*j);/*第三行*/
else printf("%4d",i*j); /*第四行*/
getch();
}
这个程序是怎么样运行的?执行完第一行后,是否又到了第二行?如果是这样,输出结果不是九九乘法表那个呀。不知道怎么执行的这个程序,请帮帮忙,我入门无人教。

TC2 F5 运行

同上,在tc下按f5键单步