Q. What is the output of the following R code: x <- 5; while (x > 0) { print(x); x <- x - 2 }

  • (A) 5, 3, 1
  • (B) 5, 4, 3, 2, 1
  • (C) 5, 2, 1
  • (D) 5, 3, 2, 1
πŸ’¬ Discuss
βœ… Correct Answer: (B) 5, 4, 3, 2, 1

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
143
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate