Computer Science, asked by shrijeetbhad1998, 8 months ago

Rewrite the following code in python afterremoving all syntax error(s).

Underline each correction done in the code.

Num = input("Number:")

Sum = 0

for i in range(10,Num,3)

Sum+=i

if i%2=0:

print ( i*2)

Else:

print ( i*3 print Sum)​

Answers

Answered by sumithrasumi2215
18

Answer:

String Num = "Number:";

int Sum = 0;

for (i=10;I<=Num;I=I+3)

{

Sum=Sum+i;

if( i%2=0)

System.out.println ( i*2);

Else:

System.out.println ( i*3 );

}

Similar questions