Question

Write a function in C# called show2D. The function should accept a two-dimensional array as an argument and display its conte

0 0
Add a comment Improve this question Transcribed image text
Answer #1

#include <iostream>

using namespace std;

void show2D(int n[3] [8]){

cout<<"contents :"<<endl;

for(int i=0;i<3;++i)

{

for(int j=0;j<8;++j)

{

cout<<n[i][j]<<" ";

}

}

}

int main()

{

int hours[3] [8] = {

{3,4,5,4,3,2,2,5},

{9,8,4,3,2,4,5,4},

{1,6,4,8,3,2,5,6}

};

show2D(hours);

return 0;

}

List of Active Devices C Write A Function In C# Called Shi 4Online CCompiler cnline ed X + X onlinegdb.com/online c+ compiler

Add a comment
Know the answer?
Add Answer to:
Write a function in C# called show2D. The function should accept a two-dimensional array as an...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT