Link to home
Start Free TrialLog in
Avatar of tsburt
tsburtFlag for United States of America

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'
Avatar of tsburt
tsburt
Flag of United States of America image

ASKER

this is what i ahve so far..

#include <stdio.h>

int main(void)
{
int x;
for x=0; x<=23; x++) printf("%d ", x);
ASKER CERTIFIED SOLUTION
Avatar of F. Dominicus
F. Dominicus
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial