快乐学习 一个网站喵查铺子(catpuzi.com)全搞定~

阅读下列代码,判断运行结果是( ) Declare @sum int,@count int Select @sum=0,@count=1 Label1: Select @sum=@sum+@count Select@count=@count+1 if @count<=5 Goto label1 Select @count-1,@sum

题目:阅读下列代码,判断运行结果是( )
Declare @sum int,@count int
Select @sum=0,@count=1
Label1:
Select @sum=@sum+@count
Select@count=@count+1
if @count<=5 Goto label1 Select @count-1,@sum A. 5 15 B. 5 10 C. 4 15 D. 4 10

喜欢 (0)
关于作者: