+ 2

a=09;print (a==09)

it is true or not and if not then give reason

31st Jul 2018, 2:25 PM
Anoop Singh Yadav
Anoop Singh Yadav - avatar
2 Respostas
+ 4
Im not sure which language that is, but you should use double-equal (==) to check for a value. = is the assignment operator so it simply assigns the value to the variable. I think it will return true because 'it has successfully assigned that value' but idk.
31st Jul 2018, 4:01 PM
ReimarPB
ReimarPB - avatar
+ 2
sorry I have written wrong syntax so I correct it first
31st Jul 2018, 4:14 PM
Anoop Singh Yadav
Anoop Singh Yadav - avatar