Answer:
Step-by-step explanation:
the condition to the while loop must be enclosed in { }, additionally the value of x should be incremented each time so that when it will be greater than 10 the while loop will be terminated and then print the result 'sum'
as
while x<= 10
{
sum+=x
x++
}
print (sum)