Write a R program to create a vector which contains 10 random integer values between -50 and +50
- برمجة R
- 2021-09-04
- adonis77j
الأجوبة
v = sample(-50:50, 10, replace=TRUE)
print("Content of the vector:")
print("10 random integer values between -50 and +50:")
print(v)
Sample Output:
[1] "Content of the vector:" [1] "10 random integer values between -50 and +50:" [1] 31 -13 -21 42 49 -39 20 12 39 -2
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال
معلومات ذات صلة