what compiler are you using??? The code you posted certainly will not compile with any standard C compiler because there is just too much missing, such as the data types of a, b, and c. And "x="%d"" is not even inside a function.
So don't tell us the program runs -- it won't even compile let alone run.
And Walt is right -- just delete the for loop statement and leave only the printf() statement.