Question: Make a program which asks first how many numbers. After that the program asks to fill the amount of numbers which you gave the program.

Make a program which asks first how many numbers. After that the program asks to fill the amount of numbers which you gave the program.

In the end it print all the number in order.

Tee ohjelma, joka kysyy kyttjlt ensin lukujen mrn. Sen jlkeen ohjelma pyyt kyttj syttmn annetun mrn lukuja yksitellen ja lis ne listaan samassa jrjestyksess.

How many numbers: 3

Give number 1: 10

Give number 2: 250

Give number 3: 34

[10, 250, 34]

How many numbers: 6

Give number 1: 10

Give number 2: 254

Give number 3: 320

Give number 4: 220

Give number 5: 340

Give number 6: 120

[10, 254, 320, 220, 340, 120]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!