During the
for loop execution
scanf() ask input and then
printf() prints that given input. This process will be continued repeatedly because,
scanf() returns the number of input given, the condition is always true(user gives a input means it reurns '1').
Hence this for loop would get executed infinite times.