Write the equivalent while( ) loop for the following for( ) loop.
int S= 0;
for(int x =2 , sum=0; x<=30; x+=2)
sum*=x;
Answers
Answered by
0
Explanation:
After converting the while loop into for : for(int i=0; i<=20; i++) { System.out.print(i+“ ”); }
convert-the-following-segment-into-equivalent-for-loop-int-i-0-while-i-20-system-out-print-i
Similar questions