Computer Science, asked by bajpaiakshat175, 1 month ago

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 xesharine4
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