Click here to Skip to main content
15,895,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
make use of the following 2D array:
Int[,] nums = new int[3,4]{{6,7,9,8},{4,2,1,3},{9,7,0,4}}
You will need to do the following with the array:
● Print out each element in the array using for loops
● Use a foreach loop and multiply every element by 5 and print it out
● Print out the rows in reverse but keep the columns in the correct order.
Output 1:
6 7 9 8 4 2 1 3 9 7 0 4
Output 2:
30 35 45 40 20 10 5 15 45 35 0 20
Output 3:
9 7 0 4 4 2 1 3 6 7 9 8

Please help, im still a noob

What I have tried:

i got the for loops down....................
Posted
Updated 12-Apr-22 2:51am
v2
Comments
Dave Kreskowiak 12-Apr-22 8:52am    
You never said what part of this you're having a problem with, nor have you shown any of the code you've written. Without those things, it's pretty much impossible to tell you what you're doing wrong.
C#internmentCamp 12-Apr-22 9:02am    
welp basically the whole question is the problem, if you could maybe write out how you'd handle it so that i can see maybe what steps im missing that would be cosmic
Dave Kreskowiak 12-Apr-22 9:10am    
About as far as I'm going to go is a loop nested inside another loop. After that, it's just simple calculations and printing results.

The assignment is testing your knowledge of loops.
C#internmentCamp 12-Apr-22 9:22am    
many thanks

1 solution

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
 
Share this answer
 
Comments
C#internmentCamp 12-Apr-22 8:35am    
honestly you can give a dog a bone, i have 20+ practicals due and im behind because of circumstancial difficulties, we dont know each other in these communities and i dont have any mentor or teacher or past knowledge that gave me a head start, im in the deep end and it wouldnt cost the next person to be that AI we desperately need, im not cutting corners, im just asking for some open source blueprints without the scrutiny that i can still learn from coding it letter by letter.
OriginalGriff 12-Apr-22 9:33am    
And? What good do you think it would do for us to do it all for you?
What would you learn from that, other than "others will do everything for me like my mom did when I was a child"?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900