You are viewing a single comment's thread. Return to all comments →
DELIMITER $$ CREATE PROCEDURE pattern_print() BEGIN DECLARE i INT DEFAULT 1; WHILE i<=20 DO SELECT IF(i = 1, "*", REPEAT("* ", i)); SET i = i + 1; END WHILE; END $$ DELIMITER ; CALL pattern_print();
Seems like cookies are disabled on this browser, please enable them to open this website
Draw The Triangle 2
You are viewing a single comment's thread. Return to all comments →
For MySQL