You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. No, there is no input for the formatted string. If there were, you would have to assume that i was declared as a positive integer. If a float, the loop would not work as it takes integers, and if it is negative, it would last forever.
2. The loop is going to be set to 0 since when it iterates, it will go to -1 then 0.5 then truncate to 0, resulting in an infinite setting to 0. There is also a semicolon after the for loop parameters, which would make the loop do nothing.