R Lang

R Program to print a table of any number1 min read

In this program, You will learn how to print a table of any number in R.

R Example: How to print a table of any number in R




This code appears to be written in the R programming language and it appears to print the first 10 multiples of a number t to the console.

The code first reads in a value for t from the user and stores it as an integer. It then uses a for loop to iterate over a sequence of numbers from 1 to 10. For each iteration of the loop, the loop variable num takes on the value of the current number in the sequence.

Inside the loop, the code uses the paste function to concatenate num and t and then prints the result to the console. This will print the first 10 multiples of t to the console, with each multiple on a separate line.

For example, if t is 4, the code will print the following to the console:

Leave a Comment