¶Á³ÌÐò¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡

¼×£ºINPUT i£½1        ÒÒ£ºINPUT  i£½1000

          S£½0                   S£½0

       WHILE i£¼£½1000       DO

       S£½S£«i                      S£½S£«i

       i£½i£«l                       i£½i£­1

       WEND                LOOP UNTIL i£¼1

       PRINT S               PRINT  S

END                  END

¶Ô¼×ÒÒÁ½³ÌÐòºÍÊä³ö½á¹ûÅжÏÕýÈ·µÄÊÇ(¡¡¡¡)

A£®³ÌÐò²»Í¬£¬½á¹û²»Í¬           B£®³ÌÐò²»Í¬£¬½á¹ûÏàͬ¡¡

C£®³ÌÐòÏàͬ£¬½á¹û²»Í¬           D£®³ÌÐòÏàͬ£¬½á¹ûÏàͬ

 

¡¾´ð°¸¡¿

B

¡¾½âÎö¡¿½â£º³ÌÐò¼×ÊǼÆÊý±äÁ¿i´Ó1¿ªÊ¼Öð²½µÝÔöÖ±µ½i=1000ʱÖÕÖ¹£¬

ÀÛ¼Ó±äÁ¿´Ó0¿ªÊ¼£¬Õâ¸ö³ÌÐò¼ÆËãµÄÊÇ£º1+2+3+¡­+1000£»

³ÌÐòÒÒ¼ÆÊý±äÁ¿´Ó1000¿ªÊ¼Ö𲽵ݼõµ½i=1ʱÖÕÖ¹£¬

ÀÛ¼Ó±äÁ¿´Ó0¿ªÊ¼£¬Õâ¸ö³ÌÐò¼ÆËãµÄÊÇ1000+999+¡­+1£®

µ«ÕâÁ½¸ö³ÌÐòÊDz»Í¬µÄ£®Á½ÖÖ³ÌÐòµÄÊä³ö½á¹û¶¼ÊÇ£ºS=1+2+3+¡­+1000=100500£®

¹ÊÑ¡B£®

 

Á·Ï°²áϵÁдð°¸
Ïà¹ØÏ°Ìâ

¿ÆÄ¿£º¸ßÖÐÊýѧ À´Ô´£º2015½ìɽÎ÷Ê¡¸ßÒ»ÏÂѧÆÚÆÚÖп¼ÊÔÊýѧÀí¿ÆÊÔ¾í£¨½âÎö°æ£© ÌâÐÍ£ºÑ¡ÔñÌâ

¶Á³ÌÐò¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡

¼×£ºINPUT  i£½1       ÒÒ£ºINPUT  i£½1000

S£½0                   S£½0

WHILE i£¼£½1000       DO

S£½S£«i                      S£½S£«i

i£½i£«l                      i£½iÒ»1

WEND                LOOP UNTIL i¡Ü1

PRINT S               PRINT  S

END                  END

¶Ô¼×ÒÒÁ½³ÌÐòºÍÊä³ö½á¹ûÅжÏÕýÈ·µÄÊÇ                           £¨    £©

A£®³ÌÐò²»Í¬£¬½á¹û²»Í¬                    B£®³ÌÐò²»Í¬£¬½á¹ûÏàͬ¡¡

C£®³ÌÐòÏàͬ£¬½á¹û²»Í¬                    D£®³ÌÐòÏàͬ£¬½á¹ûÏàͬ

 

²é¿´´ð°¸ºÍ½âÎö>>

¿ÆÄ¿£º¸ßÖÐÊýѧ À´Ô´£º2015½ìɽÎ÷Ê¡¸ßÒ»ÏÂѧÆÚÆÚÖп¼ÊÔÊýѧÎÄ¿ÆÊÔ¾í£¨½âÎö°æ£© ÌâÐÍ£ºÑ¡ÔñÌâ

¶Á³ÌÐò¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡

¼×£ºINPUT  i£½1       ÒÒ£ºINPUT  i£½1000

S£½0                   S£½0

WHILE i£¼£½1000       DO

S£½S£«i                      S£½S£«i

i£½i£«l                      i£½i£­1

WEND                LOOP UNTIL i¡Ü1

PRINT S               PRINT  S

END                  END

¶Ô¼×ÒÒÁ½³ÌÐòºÍÊä³ö½á¹ûÅжÏÕýÈ·µÄÊÇ                           £¨    £©

A£®³ÌÐò²»Í¬£¬½á¹û²»Í¬                    B£®³ÌÐò²»Í¬£¬½á¹ûÏàͬ¡¡

C£®³ÌÐòÏàͬ£¬½á¹û²»Í¬                    D£®³ÌÐòÏàͬ£¬½á¹ûÏàͬ

 

²é¿´´ð°¸ºÍ½âÎö>>

¿ÆÄ¿£º¸ßÖÐÊýѧ À´Ô´£º2013½ìºÓ±±Ê¡¸ß¶þµÚÒ»´ÎÔ¿¼Àí¿ÆÊýѧÊÔ¾í ÌâÐÍ£ºÑ¡ÔñÌâ

¶Á³ÌÐò¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡

¼×£ºINPUT i£½1        ÒÒ£ºINPUT  i£½1000

    S£½0                   S£½0

    WHILE i£¼£½1000       DO

    S£½S£«i                      S£½S£«i

    i£½i£«l                       i£½iÒ»1

    WEND                LOOP UNTIL i£¼1

    PRINT S               PRINT  S

END                  END

¶Ô¼×ÒÒÁ½³ÌÐòºÍÊä³ö½á¹ûÅжÏÕýÈ·µÄÊÇ£¨     £©

A£®³ÌÐò²»Í¬£¬½á¹û²»Í¬           B£®³ÌÐò²»Í¬£¬½á¹ûÏàͬ¡¡

C£®³ÌÐòÏàͬ£¬½á¹û²»Í¬           D£®³ÌÐòÏàͬ£¬½á¹ûÏàͬ

 

²é¿´´ð°¸ºÍ½âÎö>>

¿ÆÄ¿£º¸ßÖÐÊýѧ À´Ô´£º ÌâÐÍ£ºµ¥Ñ¡Ìâ

¶Á³ÌÐò¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¼×£ºINPUT i£½1       ÒÒ£ºINPUT  i£½1000
S£½0                   S£½0
WHILE i£¼£½1000       DO
S£½S+i                      S£½S+i
i£½i+l                      i£½iÒ»1
WEND                LOOP UNTIL i£¼1
PRINT S               PRINT  S
END                  END
¶Ô¼×ÒÒÁ½³ÌÐòºÍÊä³ö½á¹ûÅжÏÕýÈ·µÄÊÇ


  1. A.
    ³ÌÐò²»Í¬£¬½á¹û²»Í¬
  2. B.
    ³ÌÐò²»Í¬£¬½á¹ûÏàͬ¡¡
  3. C.
    ³ÌÐòÏàͬ£¬½á¹û²»Í¬
  4. D.
    ³ÌÐòÏàͬ£¬½á¹ûÏàͬ

²é¿´´ð°¸ºÍ½âÎö>>

ͬ²½Á·Ï°²á´ð°¸