Pattern5 code is forming an infinite loop


what is wrong in this code?

@mishikasrvastava Hi instead of ss, paste your code in codingblocks ide and paste the link here so i can debug it!