Answer to Question #260828 in C for Mr Z

Question #260828

10. Using the online compiler

• Write a program using a for loop that counts upwards from 0 to 100 in steps of 2.



1
Expert's answer
2021-11-04T18:41:51-0400


#include <stdio.h>

int main() {


    for (int i=0; i<=100; i+=2) {
        printf("%d\n", i);
    }
    
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS