早教吧作业答案频道 -->其他-->
请教一个ABAP编写九九乘法表的问题datas(2)typecvalue0.datad(2)typecvalue0.dataz(2)typecvalue0.do9times.s=s+1.y=y+1.z=s*y.writez.enddo.
题目详情
请教一个ABAP编写九九乘法表的问题
data s(2) type c value 0.
data d(2) type c value 0.
data z(2) type c value 0.
do 9 times.
s=s+1.
y=y+1.
z=s*y.
write z.
enddo.
data s(2) type c value 0.
data d(2) type c value 0.
data z(2) type c value 0.
do 9 times.
s=s+1.
y=y+1.
z=s*y.
write z.
enddo.
▼优质解答
答案和解析
DATA:LEFT(2) TYPE N VALUE 1,
RIGHT(2) TYPE N VALUE 1,
COUNTER TYPE I VALUE 1,
RESULT(2) TYPE N .
DO 9 TIMES.
DO COUNTER TIMES.
RESULT = LEFT * RIGHT.
WRITE:LEFT,'*',RIGHT,'=',RESULT,' '.
RIGHT = RIGHT + 1.
ENDDO.
RIGHT = 1.
COUNTER = COUNTER + 1.
WRITE:/.
LEFT = LEFT + 1.
ENDDO.
RIGHT(2) TYPE N VALUE 1,
COUNTER TYPE I VALUE 1,
RESULT(2) TYPE N .
DO 9 TIMES.
DO COUNTER TIMES.
RESULT = LEFT * RIGHT.
WRITE:LEFT,'*',RIGHT,'=',RESULT,' '.
RIGHT = RIGHT + 1.
ENDDO.
RIGHT = 1.
COUNTER = COUNTER + 1.
WRITE:/.
LEFT = LEFT + 1.
ENDDO.
看了 请教一个ABAP编写九九乘法...的网友还看了以下:
若对于任意的实数a>1且b>1,不等式a^2+b^2>t(a+b-2)恒成立,则实数t的最小值 2020-04-27 …
假设检验的拒绝域是()。A.(-∞,-za/2]∪[za/2,+∞)B.(-∞,-ta/2]∪[ta 2020-05-21 …
已知函数f(x)=x的立方一ax的平方十bx十5(1)若a=一2,b=一4,求已知函数f(x)=x 2020-06-03 …
已知x=2是方程2x+a=3的解,试解方程2分之1[2分之1(y一a)一2分之1]一2分之1=1. 2020-06-12 …
a,b,c骏均为实数,根号a一2十lb十1l十(c十3)平方=0,求ax平方十bx十c=0的根 2020-06-29 …
1、设S=2/1x3+2的平方/3x5+···+2的49次方/97x99,T=1/3+2/5+2的 2020-07-17 …
用matlab求定积分的上限b的值定积分l=∫(x^2+y^2+z^2)^(1/2)*xd(t)上 2020-07-24 …
若丨a一2丨与lb十5l互为相反数,求a+b的值. 2020-07-27 …
根据中文提示补全句子。1.看这只猫。它很胖。Lookatthe(a,t,c).Itis(t,a,f) 2020-11-22 …
lingo求救急MODEL:SETS:ID/1..4/;NO(ID):a,b,n;endsetsma 2020-12-19 …