Cognizant Interview Question

Printf and for loop related questions