Last answered:

03 May 2023

Posted on:

28 Apr 2023

0

Printing of "F"

I have written the following code for print the "F" made up of stars. Can this be treated as a solution? Or is it too crude?

 

1 answers ( 0 marked as helpful)
Instructor
Posted on:

03 May 2023

1

Hey Dhaivat,


Thank you for reaching out and for sharing your solution!


Your code is, of course, a possible solution since it successfully prints out the letter 'F'. It is, however, not a very practical one as the code could also work without introducing the while-loop, namely:

Hope this helps!


Kind regards,

365 Hristina

Submit an answer