Assignment for While loop Q1) Print" i" as long as" i" is less than 6 using while loop. CLO-2 Q2) Write a method with a while loop to prints 1 through n in square brackets. For example, if n = 6 print...


Assignment for While loop<br>Q1) Print

Extracted text: Assignment for While loop Q1) Print" i" as long as" i" is less than 6 using while loop. CLO-2 Q2) Write a method with a while loop to prints 1 through n in square brackets. For example, if n = 6 print CLO-2 [1] [2) [3] [4] [5] [6] Q3) Write a method with a while loop that computes the sum of first n positive integers: sum = 1+ 2 + 3 + ... +n CLO-2 Examples: n = 5 sum = 15 n = 19 sum = 190 Q4: Write a program that produce first 10 integers in Descending order using While Loop. CLO-2 Q5: Write a program that produce factorial of a number entered by user using do-while Loop. CLO-2 Assignment for Do/While loop Q1: Repeat the same assignment (Four Questions) using do-while loop instead of while loop. CLO-2 Q2: Explain the obtained result of all questions how is it different from the while loop. CLO-2

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here