R Program to Find the Factors of a Number examples

Editorial Staff - - R Programs

If you want to start learning the R programming or you have a bit knowledge about R programming, then this tutorial will help you to explore more. In this tutorial, we are going to share a R program to find the factors of a number with an example.

R is a famous programming language which is widely used for data analysis by data scientists. It is used in major companies like Google, Airbnb, Facebook etc.

R program to find the factors of a number with the output

Copy the below code and execute it to see the program output.

Program Output:

[1] “The factors of 120 are:”
[1] 1
[1] 2
[1] 3
[1] 4
[1] 5
[1] 6
[1] 8
[1] 10
[1] 12
[1] 15
[1] 20
[1] 24
[1] 30
[1] 40
[1] 60
[1] 120

About: Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.