119k views
0 votes
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.

User Cizixs
by
7.6k points

1 Answer

4 votes
#include <stdio.h>

for( i = 0; i < 40; i++ )
printf( "%d ", i );
User Amurrell
by
7.9k points