bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
root / semester_1 / R / temp.r

temp.r (260B)


      1 s1 = rep(c(1,2,3,4,5), times=2)
      2 s2 = c(5,4,3,2,1)
      3 count = 0
      4 for(i in s1) {
      5     for (j in s2) {
      6         if((i+j) %% 2 == 0) {
      7             count = count + 1
      8             print(sprintf("%d, %d, %d", i, j, count))
      9             print(length(s1))
     10         }
     11     }
     12 }
     13 2^3