Question:

How to generate the following output iin C++ using of for loop?

by  |  earlier

0 LIKES UnLike

123

312

213

321

132

 Tags:

   Report

2 ANSWERS


  1. 123 and 321 are easy, forward and backward for loops

    The others you will need an if in the for loop


  2. Hey mate,

    Are you sure the third entry is meant to be 213 as opposed to 231, the reason I ask is that outside of that entry the pattern of shifting the integers to the left using modulae arithmetic appears to be in action, whilst with that said if it is an error the process continues through,

    if you could send the full question, I would be more than happy to provide a full solution,

    Regards,

    David

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.