We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Draw The Triangle 2
Draw The Triangle 2
Sort by
recency
|
940 Discussions
|
Please Login in order to post a comment
FOR MYSQL
WITH RECURSIVE CTE(N) AS( SELECT 1 AS N UNION ALL SELECT N+1 FROM CTE WHERE N<20) SELECT REPEAT (' * ',N) FROM CTE
WITH RECURSIVE numbers(n) AS( SELECT 1
Similar logic to the other triangle exercise (MS SQL Server)
SQL server: