#Write a R program for calculating cumulative sums, and products minima,maxima
# cumulative maxima
# Creating vectors
x1 <- c(5, 3, 2, 6, 3, 4)
x2 <- c(-4, 6, 3)
print("MIN")
print(cummin(x1))
print(cummin(x2))
print("MAX")
print(cummax(x1))
print(cummax(x2))
print("SUM")
print(cumsum(x1))
print(cumsum(x2))