In this program, You will learn how to find the square root of a number in R.

**R Code Example:** How to find the square root of a number in R

1 2 3 4 5 6 7 8 9 10 11 |
{ num <- readline(prompt = "Enter a number :") num <- as.integer(num) result = sqrt(num) print(paste("Square root is :", result)) } |

**Output:**

1 2 3 4 |
Enter a number :64 [1] "Square root is : 8" |

## Add comment