$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · easy · #242

What is the output?

SELECT 7 / 2, 7 / 2.0;
  1. 3 | 3.5
  2. 3.5 | 3.5
  3. 3 | 3
  4. 4 | 3.5
Two integers divide as integers (truncated to 3); making one operand a real number gives 3.5.
Play Problem Solving ▸