P(R) represents a pattern drawn by Julia in R rows. The following pattern represents P(5):
* * * * * * * * * * * * * * *
Write a query to print the pattern P(20).
Draw The Triangle 1 – Hacker Rank Solution
SET @TEMP:=21; SELECT REPEAT('* ', @TEMP:= @TEMP - 1) FROM INFORMATION_SCHEMA.TABLES;
Disclaimer: The above Problem (Draw The Triangle 1) generated by Hackerrank but the Solution is Provided by Chase2Learn. This tutorial is only for Educational and Learning purposes. Authority if any of the queries regarding this post or website fill the following contact form thank you.