Right Angled Triangle variant 2 - My Code