If you are asking for this code, you are lazy to try it out...
Hint - Use the value of variable i (if i = 0 to 5) to print "*" that many times...
Trust me we can tell you the code, you'll pass your homework, but wont get programming!!
Do it yourself..