VFP编程大家帮帮忙

1. 编写程序,用for循环实现在屏幕上输出九九乘法表。
2. 编写程序,用DO WHILE循环实现在屏幕上输出九九乘法表。

第一种:
for a=1 to 9
for b=1 to a
??str(a,1)+"*"+str(b,1)+"="+str(a*b,2)+space(2)
endfor
?
endfor
第二种:
a=1
do while a<=9
b=1
do while b<=a
??str(a,1)+"*"+str(b,1)+"="+str(a*b,2)+space(2)
b=b+1
enddo
a=a+1
?
enddo
温馨提示:答案为网友推荐,仅供参考
相似回答