Lecture 7

Today was all about arrays, unfortunately we didn’t finish this lecture, but I left the last code example in there in case you are interested. Keep in mind that we have an exam next week. In the meantime here is the lecture:lecture 7

Cheers Arend

This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to Lecture 7

  1. pharaont says:

    Anyone know how to sum random numbers??

    • ahnt says:


      that depends if you need the numbers again or not.
      On the fly you can do:

      int i,sum=0;

      in case you need the random numbers later again, you should use an array:

      int i,sum=0;
      int N[100];

      Cheers Arend

Leave a Reply