Q:

Write a R program to create a two-dimensional 5×3 array of sequence of even integers greater than 50

0

Write a R program to create a two-dimensional 5×3 array of sequence of even integers greater than 50.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

a <- array(seq(from = 50, length.out = 15, by = 2), c(5, 3))
print("Content of the array:")
print("5×3 array of sequence of even integers greater than 50:")
print(a)

Sample Output:

[1] "Content of the array:"
[1] "5×3 array of sequence of even integers greater than 50:"
     [,1] [,2] [,3]
[1,]   50   60   70
[2,]   52   62   72
[3,]   54   64   74
[4,]   56   66   76
[5,]   58   68   78

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now