Hello all there!
A friend of mine asked me for help but I can write only in C++. I've tried to look some Pascal tutorials but its syntax is very strange, in my opinion. So, here's the simple task:
- Write a program that works with three two-dimensional arrays : P (10x12), Q (14x16), R (15x19) which have to be initialized with integers from 0 to 999.
* Initialize the arays;
* Print the arrays;
* Save the positive elements above the main diagonal of each of the three arrays in a new array (for example, we can make three new two-dimensional arrays of integers: new_p, new_q, new_r).
Count the negative elements below the main diagonal of each of the three arrays (for example, we can use three integer variables counter_p, counter_q, counter_r).
* Print the results (new_p, new_q, new_r; counter_p, counter_q, counter_r).
If you could help me, thank you a lot in advance!
Kind regards,
Georgi
* Print the results.