等腰三角形

Posted on 2008-08-05 16:35  至今  阅读(95)  评论(0编辑  收藏
declare @i int,@j varchar(20),@k varchar(30),@m varchar(30)
set @i=10
set @j='          '
set @k='*'
while @i>0
 begin
 set @m=substring(@j,1,@i)+@k
 set @k=@k+'**'
 print @m
 set @i=@i-1
 end

posts - 34, comments - 79, trackbacks - 0, articles - 5

Copyright © 2020 至今
Powered by .NET Core on Kubernetes