x = c(10, 20, 30, 25, 9, 26)
print("Original Vectors:")
print(x)
print("Maximum value of the above Vector:")
print(max(x))
print("Minimum value of the above Vector:")
print(min(x))
Sample Output:
[1] "Original Vectors:"
[1] 10 20 30 25 9 26
[1] "Maximum value of the above Vector:"
[1] 30
[1] "Minimum value of the above Vector:"
[1] 9
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer