Answer to Question #236201 in C++ for MENSAH PAUL OSEI

Question #236201
Write a C++ program to print numbers from 1-5
1
Expert's answer
2021-09-12T11:49:00-0400
#include <iostream>

int main()
{
    for(int i = 1; i <= 5; ++i)
    {
        std::cout << i << "\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