R program to take input from user with the output

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 take input from user with an example.

Try more:

R program to take input from user with the output

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

Program Output

Enter name: Prem
Enter age: 29
Hi, Prem next year you will be 29 years old.

Recommended Posts:


Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers.


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.