- Write A C Program That Declares A Two Dimensional Array Of Size5 Called Xy 5 5 And Generates The Values Of Its Eleme 1 (31.53 KiB) Viewed 13 times
Write a C++ program that declares a two dimensional array of size5 called xy[5][5] and generates the values of its eleme
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write a C++ program that declares a two dimensional array of size5 called xy[5][5] and generates the values of its eleme
Write a C++ program that declares a two dimensional array of size5 called xy[5][5] and generates the values of its elements using conditional statements as the following: • The main diagonal contains 0 in all its locations. • The upper triangle contains random numbers between x+2 and y+9 in all its locations, where x and y are the last two digits of your ID. • The lower triangle contains random numbers between 2 and 9 in all its locations. Display the resulted array on the screen and store it in a file called green.txt.