A

Admin • 828.03K Points
Coach

Q. What is the result of 10 / 3 in Ruby?

  • (A) 3
  • (B) 3.33
  • (C) 3.0
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
Integer division truncates decimal part in Ruby.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.