R Program to Create a Sequence of Numbers

R Program to Create a sequence of numbers: In this program, you will learn about R program to create a sequence from 20 to 50 and find the mean of number from 20 to 60 and sum of numbers from 51 to 91. let’s start

R Program to Create a Sequence of Numbers

Source Code

print("Sequence of numbers from 20 to 50:")
print(seq(20,50))
print("Mean of numbers from 20 to 60:")
print(mean(20:60))
print("Sum of numbers from 51 to 91:")
print(sum(51:91))

Output