السلام عليكم
إذا سمحتون تحلون لي هذي المسألة
Write a program that reads the temperatures for one week in di®erent cities. De¯ne a 2-dimensional array of
size 5 rows and 7 columns that will store the temperature readings. Ask the user to input the required data
then print all those days in which the temperatures are the same (i.e. it should ¯nd all identical columns in the
2-dimensional array).
For example, if the numbers in the array are as follows:
6 5 4 3 2 1 0
city0 23.0 27.1 23.0 26.9 28.0 29.0 26.9
city1 22.4 28.0 22.4 30.5 24.0 24.0 30.5
city2 25.0 31.7 25.0 26.4 30.0 31.2 26.4
city3 23.6 30.6 23.6 32.3 26.0 26.0 32.3
city4 21.1 28.0 21.1 30.2 34.0 29.5 30.2
then your program should print the following:
days 0 and 2 are identical
days 3 and 6 are identical