What is the value of x after execution? int n = 841; int x = 1; for (i = 0; i < 50; i++) { int nx = (x + n / x) / 2; X =

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

What is the value of x after execution? int n = 841; int x = 1; for (i = 0; i < 50; i++) { int nx = (x + n / x) / 2; X =

Post by answerhappygod »

What Is The Value Of X After Execution Int N 841 Int X 1 For I 0 I 50 I Int Nx X N X 2 X 1
What Is The Value Of X After Execution Int N 841 Int X 1 For I 0 I 50 I Int Nx X N X 2 X 1 (27.67 KiB) Viewed 169 times
How to solve these ?
What is the value of x after execution? int n = 841; int x = 1; for (i = 0; i < 50; i++) { int nx = (x + n / x) / 2; X = nx; } Pick ONE option 14 O 70 O 17 29 Clear Selection 2. Time Complexity 2 What is the time complexity of this code? int temp = 0; for (int i = 0; i<n; i++) { for (int j = 0; j<imi; j++) { for (int k = 1; -k; k -= 1) { temp++; } Pick ONE option O O(n) O O(n) C oins logn O O(n)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply