Answer to Question #243460 in C++ for jersonjangerona

Question #243460
Prepare a c++ program using two-dimensional array

310
220
800
1000
1
Expert's answer
2021-09-29T03:24:39-0400
#include <iostream>
int main()
{
    int arr[4][1] = {{310}, {220}, {800}, {1000}};
    for (int i = 0; i < 4; i++) {
        std::cout << arr[i][0] << std::endl;
    }
    return 0;
}
//OUTPUT:
//310
//220
//800
//1000

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS