Use a while loop (and brute force) to identify the first positive integer whose natural log is larger than 10. Outside the loop, set a numeric variable (call it start) equal to 1. Inside the loop, print the value of log(start), and increase the value of start by 1. DO NOT submit the entirety of the output that is printed to the console. Instead, provide your code and the value of start that causes the loop to terminate.
Using Rstudio!!!
here our start variable is x which is starting from 1. In while loop we make a condition such that x is increase one unit till log(x) is less than 10, as log(x) increase by 10 our process will be terminate and give the value of log(x) also we can print x value. the R code is
R codes with output is
therefore the minimum value of x is 22027 for which log(x) is just greater than 10.
hii...i am providing detailed answer to you. I hope you will understand well to answer. if you have any querry please ask by comment i will respond to you and please give your good rating to answer for providing the best quality answers in future. thanks
Get Answers For Free
Most questions answered within 1 hours.