declare @i intdeclare @n intset @i=1set @n=100while @i<=@n begin if @i % 2 = 1 print @i set @i=@i+1end;