How can I compact my code?

for(int i; i <= 50; i++)

What is the initial value of "i"?
What is the final value of "i"?
How many loops did you intend?