题目:阅读下列代码,判断运行结果是( )
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
题目:阅读下列代码,判断运行结果是( )
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