Write a program, that reads a series of integer numbers from the keyboard and performs the task described below. Each number can be entered as a separate line of text (with the ENTER key pressed at the end). The entering of numbers should be stopped when the user enters a non-number, e.g. an empty line or a text like “stop”. 1. Print how many of the entered numbers are larger than the average of all of the entered numbers.
Wprowadzasz jakąś liczbę stałoprzecinkową i wciskasz enter, zapisujesz to w jakimś wektorze Powtarzasz do czasu aż nie będzie to coś, co nie jest intem liczysz średnią z wektora i liczysz ile liczb w wektorze ma większą wartość zwracasz liczbę tych liczb czyli np. dla 1
Write a program, that reads a series of integer numbers from the keyboard and performs the task
described below. Each number can be entered as a separate line of text (with the ENTER key pressed
at the end). The entering of numbers should be stopped when the user enters a non-number, e.g. an
empty line or a text like “stop”.
1. Print how many of the entered numbers are larger than the average of all of the entered
numbers.
#programowanie #csharp #visualstudio #pomocy
Pewnie każdy, kto ma doświadczenie w programowaniu wynoszące minimum 2 godziny. ( ͡° ͜ʖ ͡°)
Powtarzasz do czasu aż nie będzie to coś, co nie jest intem
liczysz średnią z wektora i liczysz ile liczb w wektorze ma większą wartość
zwracasz liczbę tych liczb
czyli np. dla
1
@tweety01: nie sądzę aby w ogóle dało się coś takiego zrobić.