Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to get this output in a 4x4 matrix: 1 0 0 0
0 1 0 0
0 0 1 0
1 1 1 1
How can this be done?
Posted
Comments
Richard MacCutchan 21-Nov-13 5:10am    
This sort of homework question is supposed to test how much you have learned in class. Try to think about it in general terms, what are the steps needed to write this matrix on a piece of paper, etc. Then translate those steps into some code.
Member 10416221 21-Nov-13 8:20am    
Sorry, it's just that I am pressed for time. I just took an exam last night and I have two other exams that I recently took and didn't have much time for programming. If you could help in anyway, I would greatly appreciate it.
Richard MacCutchan 21-Nov-13 8:45am    
Are you joking? You are pressed for time so you expect someone else to do your homework for you?
gugulethu03 12-Oct-14 17:56pm    
this is basic programming, learning it that getting a solution done for you is highly beneficial

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