Message on Whatsapp 8879355057 for DSA(OA + Interview) + Fullstack Dev Training + 1-1 Personalized Mentoring to get 10+LPA Job
0 like 0 dislike
1,949 views
sum=0
for x in range(6):
    sum=sum+x
    if(x==2):
        sum=sum+10 
        
        
print(sum)   

 

What will be the output of this code ? Also, I need the explanation too. 

 

 

 

 

 

 

in Beginners by | 1,949 views

1 Answer

0 like 0 dislike
the sum of answer is 25
by