主题:[讨论]编程小题
我的编程终于考完了![em3]可老师还留了作业[em10]不知各位可否帮助?[em18]谢谢[em12]
1 INPUT N
FOR I =1 TO N
_____(1)_____
FOR J = _____(2)_____
PRINT "*";
NEXT J
NEXT I
FOR I =1 TO N-1
______(3)______
FOR J = _____(4)____
PRINT "*";
NEXT J
NEXT I
END
2 FOR M = 1 TO 10
X = _____(5)_____
IF ______(6)_______THEN
PRINT X ;
K = K +K
END IF
NEXTM
PRINT
PRINT " K = " ; K
END
1 INPUT N
FOR I =1 TO N
_____(1)_____
FOR J = _____(2)_____
PRINT "*";
NEXT J
NEXT I
FOR I =1 TO N-1
______(3)______
FOR J = _____(4)____
PRINT "*";
NEXT J
NEXT I
END
2 FOR M = 1 TO 10
X = _____(5)_____
IF ______(6)_______THEN
PRINT X ;
K = K +K
END IF
NEXTM
PRINT " K = " ; K
END