Write a program which produces the given sequence nos. (in alternate arrangement) using the three looping statements:
1, 5, 2, 4, 3, 3, 4, 2, 5, 1,
1 Solution - using for loop statement 2nd Solution - using while loop statement 3rd Solution- using do while loop statement
3. Write a program which produces the given sequence numbers (in alternate arrangement and reverse order of the problem no. 2) using the three looping statements:
Comments
Leave a comment