Using the random (x) function, get numbers between 50 and 100 and print all odd numbers.
July 26, 2021 | education|
arr: array [0..50] of integer; // declare an array.
i, sum: integer; // declare variables of integer type.
for i: = 1 to 50 do // start of the cycle.
arr [i]: = random (50,100); // fill the array element with a random number from 50 to 100.
if (arr [i] mod 2> 0) then // if the number is odd, then display it on the screen.
write (arr [i], ”);
One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.