Write a R program to find the maximum and the minimum value of a given vector
- برمجة R
- 2021-09-04
- adonis77j
الأجوبة
nums = c(10, 20, 30, 40, 50, 60)
print('Original vector:')
print(nums)
print(paste("Maximum value of the said vector:",max(nums)))
print(paste("Minimum value of the said vector:",min(nums)))
Sample Output:
[1] "Original vector:" [1] 10 20 30 40 50 60 [1] "Maximum value of the said vector: 60" [1] "Minimum value of the said vector: 10"
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال
معلومات ذات صلة