• + 2 comments

    declare @R int =20 while (@R>0) begin print replicate('*',@R) set @R= @R -1 end;

    the result looks fine but system says wrong answer. any suggestions why?