Answer to Question #261866 in C for Amraj

Question #261866

Problem 01: Write a for loop which will print the following numbers:



100



90



80



.



.



.




1
Expert's answer
2021-11-11T00:07:02-0500

Source code

#include <stdio.h>


int main()
{
    for(int i=100;i>=0;i=i-10){
        printf("%d\n",i);
    }


    return 0;
}

Output




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