SHARE
TWEET

tugas

erikrca Sep 15th, 2019 124 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a<-c(159,165,183,163,171,154,165,173,182,157,166,169,169,161,153,169,178,154,170,165,155,160,162,163,148,175,170,155,157,157,172,158,165,163,169)
  2. n<- 35
  3. for (i in 1:(n-4)) {for (j in (i+1):(n-3)) {for(k in(j+1):(n-2)) {for (l in (k+1):(n-1)){for (m in (l+1):n) {print(  mean(b<-c(a[i],a[j],a[k],a[l],a[m]))  ) }}}}}
  4. for (i in 1:(n-4)) {for (j in (i+1):(n-3)) {for(k in(j+1):(n-2)) {for (l in (k+1):(n-1)){for (m in (l+1):n) {s<-s+mean(b<-c(a[i],a[j],a[k],a[l],a[m]))   }}}}}
  5. r<-s/324632
  6. r
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top