11 2016 档案
摘要:declare @i int ,@j int ,@s nvarchar(max) set @i = 1 while @i = @i begin set @s += cast(@i as char(1)) + '*' + cast(@j as char(1)) set @s += ' ' ...
阅读全文
摘要:菱形每一行都是由n个' ' + n 个'**' + 1个'*' 组成的 例如高度为9的菱形(共print 9次),*最多的一次print为第五次第五次就是0个' ' + 4个'**' + 1个'*' ,所以每一行都有 (高度+1)/2的输出对象(为*或者**、' '), 所以第一行就是4个 ' '
阅读全文