- C Using A For Loop Calculate The Sum Of The Following Sequence 1 1 1 1 1 1 3 5 9 1005 D Write The Above Sum Using 1 (29.63 KiB) Viewed 13 times
c) Using a for loop calculate the sum of the following sequence 1 1 1 1 1 1+ - + 3 5 9 1005 d) Write the above sum using
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
c) Using a for loop calculate the sum of the following sequence 1 1 1 1 1 1+ - + 3 5 9 1005 d) Write the above sum using
c) Using a for loop calculate the sum of the following sequence 1 1 1 1 1 1+ - + 3 5 9 1005 d) Write the above sum using vectorisation instead of a for loop [8 marks] e) Why may it be favourable to use vectorisation instead of using a for loop for the above problem [2 marks] 25 Marks [8 marks]