HCLTech Interview Question

write a syntax of for loop and while loop