以下程序可以用来求的值,请把下面的程序补充完整,并根据程序画

以下程序可以用来求的值,请把下面的程序补充完整,并根据程序画出程序框图。

INPUT “a,n=”; a,n

t=1

s=1

i=1

DO

                            

s=s+t

i=i+1

LOOP UNTIL  i>n

PRINT  s

END

答案

解析t=t*a

 

相关题目

I'm afraid that I can't make myself ___ be cause of my poor English. A. underst
I'm afraid that I can't make myself ___ be cause of my poor English. A. understand B. understanding C. to understand D. understood
(一)课内外对比阅读。 (甲)水陆草木之花,可爱者甚蕃
(一)课内外对比阅读。 (甲)水陆草木之花,可爱者甚蕃。晋陶渊明独爱菊。自李唐来,世人盛爱牡丹。予独爱莲之出淤泥而不染,濯清涟而不妖,
将一定量的锌粉加入到硝酸亚铁、硝酸银的混合溶液中,溶
将一定量的锌粉加入到硝酸亚铁、硝酸银的混合溶液中,溶液最终变为无色。下列图像能表示对应变化关系的是(   )           A.         
 Jane does homework ______ than Michael.                   
 Jane does homework ______ than Michael.                                      A. more careful                            B. carefully
风向标符号,长线段表示风向,短线段表示风力大小。图甲
风向标符号,长线段表示风向,短线段表示风力大小。图甲和图乙表示世界某地区不同季节的风向情况。读图回答24-25题。 24、该地区的气候类型是( 
夏天,在室外放两支温度计,其中一支的玻璃泡包上湿布,
夏天,在室外放两支温度计,其中一支的玻璃泡包上湿布,并将湿布的另一端放入水中,如图所示.可以发现两支温度计的示数有明显的差异,其原因
I can’t swim because I have a strong fear of water. Look back 1. ________ my c
I can’t swim because I have a strong fear of water. Look back 1. ________ my childhood experiences, I think that three reasons might          2. ________ explain the fear. The first reason

最新题目