I m not getting 11

instead i get 10 on execution
pls check my code for errors

Hey @harshita.rathee share your code using ide.codingblocks.com so that i can debug it. It’s hard to debug using screenshot :slight_smile:
Moreover if you don’t know how to share code using ide.codingblocks.com you can ask me :grinning:

pls guide me how to share code using code blocks ide
cause it is not showing any shortened url

When you open the ide.codingblocke.com link you will see this


Here first paste your code which you want me to debug. After pasting your code here go in file->press save button. You will see a green colour tag your code has been saved in top right. After that check your url ,it will be assigned a specific number. Share that url with me. Still have an issue can ask me :slight_smile:

Good job @harshita.rathee, now leave it to me I’ll debug it and let you know :slight_smile:

Hey @harshita.rathee it worked absolutely file while running


It might be showing error cause of some glitch :slight_smile:

ig there an =missing in the if condition

Oh so you were confused about second statement. I thought you were confused about do while format. Yes in if statement there should be == to check. What you were doing was assigning x=10. Good job @harshita.rathee

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.