Computer Science, asked by priyankapradeep20992, 6 months ago

E. Find the errors in the following programs.
1. X = 5
DO WHILE X <= 50
PRINT X
X = x + 5​

Answers

Answered by SwapnilMehta
1

Explanation:

which language is this Java or Python ?

giving you ans according to Java

data type missing & semicolon; missing it should be int X=5;

do while should be not written together , for condition () should be used

Print statement missing

semicolon missing

correct code

int X=5;

do

{

System.out.println(X);

X=X+5;

}

while(X<=50);

}

Subscribe to YouTube channel Study To Study ICSE-Swapnil Mehta for computer programs

Thank you

Please mark me brainlist

Answered by shankys887
2

Answer:

while (X<=50)

print("X")

X =X+5;

Explanation:

do while statement is wrong and error why sum of the x is use the semicolon not use statement error

Similar questions