• A The program has a compile error because the adjustment is missing in the for loop.
  • B The program has a compile error because the control variable in the for loop cannot be of the double type.
  • C The program runs in an infinite loop because d<10 would always be true.
  • D The program compiles and runs fine.
  • Share this MCQ