Scanf behaves weirdly in for loop.Please help.

Printable View