tsburt
asked on
loop program
how to do this program
thanks guys
Ï initialize an integer 'i' to 23
Ï print a new line with the value of 'i'
Ï run a for loop with the following requirements
Ë use a local integer variable named 'i' as the loop variable
Ë initialize the for loop to 0
Ë the for loop must loop 10 times
Ë post increment the loop variable
Ë print a new line with the value of the loop variable inside the for loop code block
Ï after the for loop, print a new line with the value of 'i'
thanks guys
Ï initialize an integer 'i' to 23
Ï print a new line with the value of 'i'
Ï run a for loop with the following requirements
Ë use a local integer variable named 'i' as the loop variable
Ë initialize the for loop to 0
Ë the for loop must loop 10 times
Ë post increment the loop variable
Ë print a new line with the value of the loop variable inside the for loop code block
Ï after the for loop, print a new line with the value of 'i'
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
#include <stdio.h>
int main(void)
{
int x;
for x=0; x<=23; x++) printf("%d ", x);