Guest User

Untitled

a guest
Nov 19th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. gg=c(1,2,5,2,3,3,2,7)
  2. total <- 0
  3. for (n in 1:length(gg)) {add = gg[n] + gg[n+1]
  4. total = total + add
  5. }
Add Comment
Please, Sign In to add comment