The Question was to print a Right-Angled Triangle in Hacker-Rank -:
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Declare @var int Select @var=1 While @var < 6 Begin Print replicate('* ',@var) ' at line 1
This was my Code but it's not working -:
Declare @var int Select @var=1 While @var < 6 Begin Print replicate('* ',@var) Set @var = @var + 1 End