Question:

Answer saved Mark Converts the following code from while to

Last updated: 1/20/2024

Answer saved Mark Converts the following code from while to

Answer saved Mark Converts the following code from while to for loop main 1 int x i sum 0 cin x while x 5 O C O a main sum x i 1 while i sum Marked out of 1 00 O b main 1 5 cin x O b main main cout i i 2 int x i sum 0 for i 1 x 5 i O d main cin x sum x int x i sum 0 cin x for i 1 i sum i 2 cout i cin x for i 1 x 5 i int x i sum 0 cin x for i 1 x 5 i sum x for i 1 i sum i 2 cout i int x i sum 0 cin x cin x for x 5 sum x for i 1 i sum i 2 cout i cin x int x i sum 0 cin x for x 5 gumt 11