Dreamfarer / UZH

A collaboration between students from the University of Zurich committed to providing additional help and sample solutions for lecture assignments
GNU General Public License v3.0
17 stars 10 forks source link

Info2-001-02: Add solution #83

Closed ghost closed 1 year ago

ghost commented 1 year ago

Verify my submission please. Note that I also added a general case, that one allows users to play around and see how the code can also print out n x n matrices. The general case does not use Scanf but it keeps the functionality of the submission.

Patertuck commented 1 year ago

Hey @yuirike

I looked over your code and tested it but it seems like you misinterpreted the task. Here is how you calculate the square of a matrix: image

The task is very poorly written so no worries, I had difficulty understanding it in the beginning too. 😅

In the future: Try to verify your solutions before submitting them. It would have been very easy to realize the code not resulting in the right solution by googling for a square matrix calculator.

We reopened your branch so you can add your new code onto the same one as before. So you can open a new pull request from there again.

Either way: Thanks already for contributing <3