create or alter procedure ShowOddNos @inp1 int,@inp2 int as while(@inp1<=@inp2) begin if(@inp1%2=1) begin print(@inp1) end set @inp1 = @inp1 +1 end exec ShowOddNos 7,20
create or alter procedure ShowOddNos @inp1 int,@inp2 int as while(@inp1<=@inp2) begin if(@inp1%2=1) begin print(@inp1) end set @inp1 = @inp1 +1 end exec ShowOddNos 7,20
Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
No Good?
Help us improve our code examples by registering to vote on and add answers. Join our developer community to improve your dev skills and code like a boss!