Write a for loop that prints the integers 0 through 39. separated by spaces.

answer in C programming

answer in C programming


Given an int variable i that has already been declared, write a for loop that prints the integers 0 through 39, separated by spaces. Use no variables other than i. Given an int variable i that has already been declared, write a for loop that prints the integers 0 through 39, separated by spaces. Use no variables other than i.

for (i = 0; i < 40; i++) printf("%d ", i);

Leave a Comment