working with functions
A modular program using functions and dynamic arrays.
The program creates an array with pseudo-random numbers from -250 to
250, and performs various operations:
- displaying,
- searching,
- finding maximum values,
- calculating statistics (counting, summing, and averaging even
numbers using reusable functions),
- sorting.
try console
To try the program, enter a value into STDIN first, then click the
Run button.
Type a number from 1 to 400 to choose the array size and a number
you want to find into the array (example INPUT, 100 44).
If you enter an invalid value or letters, click the Stop
button.
There are some limitations in the mobile version of the compiler.
For the full experience, please use a PC.
