The program will print the series up to n terms using the while loop :
For Example : If n=6, we have the output as followed:
1 2 3 4 1 2
Feel free to post your queries and doubts in the comment section below...Just hope you are able to understand the logic and concept, please give some suggestions for improvement...Thankyou everyone ♡♥♡...!!!