0% found this document useful (0 votes)
18 views

Nested Loops and One-D Array

1. The document provides instructions for two programming questions as part of a lab performance test. 2. For question 1, students are asked to write a program that takes 10 numbers as input from the user into a one dimensional array, and calculates the sum and average of those numbers. 3. For question 2, students are asked to write a program that displays a specific pattern of asterisks on the console to output the text "Nested Loop".

Uploaded by

Shahzad Ahmad
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Nested Loops and One-D Array

1. The document provides instructions for two programming questions as part of a lab performance test. 2. For question 1, students are asked to write a program that takes 10 numbers as input from the user into a one dimensional array, and calculates the sum and average of those numbers. 3. For question 2, students are asked to write a program that displays a specific pattern of asterisks on the console to output the text "Nested Loop".

Uploaded by

Shahzad Ahmad
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Lab Performance [Marks=10] [Time=60 Min]

Q.No.1: Write a program that input 10 numbers from the user in the Array
and find out Sum and Average of the Numbers using One Dimensional
Array.

Q.NO.2: Write a Program that display the following output on the console
”Nested Loop”:-

* * * * * * ***** **** *
* * * * **** **** * *
* * * * * *** **** * * *
* * * * * * ** **** * * * *
* * * * * * * * * * * **** * * * * *

Good Luck

You might also like