Answer to Question #307601 in C for Silas

Question #307601

Write a program to printout even numbers from 1-1000


1
Expert's answer
2022-03-08T07:11:37-0500
#include <stdio.h>

int main()
{
    for (int i=1; i <= 1000; i++)
    {
        if (i % 2 == 0)
            printf("%d ", i);
        if (i % 25 == 0)
            printf("\n");
    }
    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