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 .

LANGUAGE: C++

CHALLENGE:

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.

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,

1 Comment

  1. Malcolm A. Morgan on February 19, 2016 at 6:12 am

    THIS IS THE CODE FOR C:

    for (i=0; i<=39; i++){
    printf(" %d", i);
    }

Leave a Comment

You must be logged in to post a comment.