0 LIKES LikeUnLike
4) What should be the most appropriate for statement to sum up all the values from 1 to 100? Assume the statement repeated is sum = sum index;a) for (index = 0; index < 100; index )b) for (index = 1; index < 100; index )c) for (index = 0; index <= 100; index )d) for (index = 1; index < 100; index )My answer is a). The question asks for the most appropriate for statement... That means the other choices are acceptable? Which of them are also acceptable?
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 1 answers.