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 2 – Hacker Rank Solution
set @row := 0; select repeat('* ', @row := @row + 1) from information_schema.tables where @row < 20
Disclaimer: The above Problem (Draw The Triangle 2) 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.