I not know about 2d array Please help me to solve this problem.........................
Write a program that declares a 2-D array of 7 rows and 2 columns. The rows represent one day of the week. The first column is the maximum temperature of that day and the second columns is the minimum temperature of that day.
Syed Ammar
0
Newbie Poster
Recommended Answers
Jump to Post
int array[2][7];
Jump to PostI agree with Suzie999. First index is the number of "rows", and the second is the number of "colums" in the row, although either way will work if programmed correctly, though this way is simpler in that you can do this:
for (int i = 0; i …
All 6 Replies
Moschops
683
Practically a Master Poster
Featured Poster
Suzie999
245
Coding Hobbyist
Lp_baez
0
Light Poster
Suzie999
245
Coding Hobbyist
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
David W
131
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.