阅读图6所示的程序框图,运行相应的程序,输出的结果是(     ) A.

阅读图6所示的程序框图,运行相应的程序,输出的结果是(     )

A.-1        B.2        C.3     D.4

答案

D


解析:

代入程序中运行第一次是,然后赋值此时;返回运行第二次可得,然后赋值;再返回运行第三次可得,然后赋值,判断可知此时,故输出,故选D。

相关题目

8.Without your kind help, we ______ in the experiment. A.cannot succeed   
8.Without your kind help, we ______ in the experiment. A.cannot succeed     B.hadn’t succeeded     C .w ouldn’t succeed  D. couldn’t have succeeded  
I was eight years old then. Looking __36__ I remember the time in a baseball fie
I was eight years old then. Looking __36__ I remember the time in a baseball field passing the team that we had just __37__ . We shook their hands and said, Good game! It is __38__ to do that when you
下列离子组能够大量共存的是 A.无色溶液中:Cu2+、K+、NO3-
下列离子组能够大量共存的是 A.无色溶液中:Cu2+、K+、NO3-、Cl- B.使pH试纸显红色的溶液中:Fe2+、K+、NO3-、Cl- C.含MnO4-的溶液中:Fe3+、SO42-
有一张珍贵的照片上记录着这样的一行字:“中华民国八年
有一张珍贵的照片上记录着这样的一行字:“中华民国八年五月四日北京学界游街大会被拘留之北京高师爱国学生七日返校时摄影”。据此可以判断这
    Here is your best chance to travel around the UK in 2013: More than 200
    Here is your best chance to travel around the UK in 2013: More than 200 B&Bs(bed & breakfast)across England, Scotland, Wales and Northern Ireland are selected to offer you amazi
如图5-1-1所示,一个物块在与水平方向成α角的恒力F作用下,
如图5-1-1所示,一个物块在与水平方向成α角的恒力F作用下,沿水平面向右运动一段距离x,在此过程中,恒力F对物块所做的功为 ( ). A.B.C.Fxsin αD
阅读下面的文字,完成后面小题。   鸡缸 文/孙犁 ① ①我
阅读下面的文字,完成后面小题。   鸡缸 文/孙犁 ① ①我家住宅后面就是南市,解放初期,那里的街道两旁,有很多小摊。每到晚上没事,我好到那
在A+B→盐+水的反应中,A和B不可能是( ) A.HCl和NaOH       
在A+B→盐+水的反应中,A和B不可能是( ) A.HCl和NaOH                B.CO2和NaOH C.H2SO4和Fe2O3                            D.H2SO4和BaCl2

最新题目