You should create a program where the user can input 10 numbers. The speech should be saved in an array / list and after the input the user should be able to see the largest number or the smallest number or the average or all the numbers. A program run may look like the following:
Enter number 1: 12
Enter number 2: 8
Enter number 3: 34
Enter number 4: 23
Enter number 5: 9
Enter number 6: 62
Enter number 7: 41
Enter number 8: 7
Enter number 9: 14
Enter number 10: 53
Choose what you want to do
1. Show the largest number
2. Show the smallest number
3. Show the mean to one decimal
4. Display all input numbers
5. Finish this program
مرحبا اعزائي المبرمجين
كيف يمكن كتابة هكذا برنامج؟
You should create a program where the user can input 10 numbers. The speech should be saved in an array / list and after the input the user should be able to see the largest number or the smallest number or the average or all the numbers. A program run may look like the following:
Enter number 1: 12
Enter number 2: 8
Enter number 3: 34
Enter number 4: 23
Enter number 5: 9
Enter number 6: 62
Enter number 7: 41
Enter number 8: 7
Enter number 9: 14
Enter number 10: 53
Choose what you want to do
تمّ تعديل بواسطة نديم يافاوي1. Show the largest number
2. Show the smallest number
3. Show the mean to one decimal
4. Display all input numbers
5. Finish this program
انشر على الشّبكات الاجتماعية
رابط هذه المساهمة