[1] 25262.03
[1] 41253.33
[1] 10767.57
[1] 95233.73
[1] 101260
[1] 40775.52
[1] 24072.13
[1] 4785.145
[1] 39129.52
[1] 29666.19
[1] 26830.3
[1] 64700.87
[1] 42768.18
[1] 94697.26
[1] 79013.47
[1] 103955.2
[1] 92798.47
[1] 41901.98
[1] 17439.57
[1] 41055.04
[1] 37544.2
[1] 25198.3
[1] 12928.49
[1] 36388.29
[1] 34962.86
[1] 80307.93
[1] 8854.525
[1] 50183.19
[1] 28846.17
[1] 35735.37
[1] 115908.2
[1] 31765.37
[1] 58958.71
[1] 5561.862
[1] 28349.41
[1] 15418.31
[1] 9218.648
[1] 1197.666
[1] 94407.87
[1] 19552.5
Loops use modify loop (solution)
Exercise
Output solution
Code solution for Use and Modify with Apply
Part 1
Part 2
[1] 26039.69
[1] 42825.6
[1] 10800.22
[1] 98273.05
[1] 104257.5
[1] 41822.39
[1] 24840.64
[1] 4899.022
[1] 39915.95
[1] 30937.92
[1] 26354.91
[1] 66384.86
[1] 43837.94
[1] 97141.45
[1] 80553.86
[1] 105556.4
[1] 97374.66
[1] 42760.14
[1] 18749.27
[1] 42109.01
[1] 40674.18
[1] 26003.42
[1] 13229.82
[1] 37472.79
[1] 34684.03
[1] 80187.27
[1] 9460.977
[1] 51630.57
[1] 29253.77
[1] 36399.31
[1] 117512
[1] 33384.29
[1] 58581.23
[1] 5462.316
[1] 28637.74
[1] 15864.17
[1] 9284.81
[1] 1218.755
[1] 98522.61
[1] 19534.52
Part 3
[1] 26039.686 42825.603 10800.224 98273.049 104257.481 41822.386
[7] 24840.644 4899.022 39915.948 30937.922 26354.908 66384.865
[13] 43837.944 97141.451 80553.856 105556.405 97374.660 42760.136
[19] 18749.274 42109.012 40674.182 26003.425 13229.824 37472.789
[25] 34684.033 80187.272 9460.977 51630.571 29253.772 36399.306
[31] 117511.962 33384.288 58581.226 5462.316 28637.745 15864.172
[37] 9284.810 1218.755 98522.609 19534.524