I have the following code
create procedure math_table1(@num int, @i int)
as
begin
declare @b int
set @b = 1
while (@b <= @i)
begin
print @num
print '*'
print @b
print '='
print @num * @b;
set @b = @b + 1;
end
end
For input 5, 10
I get the following type of output:
5
*
1
=
5
I want to modify my code to get the following type of output:
5*1=5
Can anyone help me please?