Variables

Ma’am, how have you reinitialised ‘C’ to 200 and if so, why the answer comes out to be 200 when ‘B’ is 10?

@discobot mam have reinitialized the variable in the line 22 bcoz initially c contains a+b(declaration) int the line no.16 But in line no. 22 we have updated the value of c as a*b and since a = 10 and b = 20 we get c = 200.

Hi! To find out what I can do, say @discobot display help.

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.