+ 1
take a look at this codes (solved)
ok, now I got it! for more info open code: 1st: https://code.sololearn.com/cW9BDDCBvip6/?ref=app 2nd: https://code.sololearn.com/cVFgabjA1Jnj/?ref=app
5 Answers
+ 2
OK, thanks!
+ 2
Do sqr(i) (i)*(i) and if for example you do sqr(3+1) this will do (3+1)Ă(3+1)=4Ă4=16
+ 1
2nd.
if(a=8||b==5)
|| operator has higher precedence than = operator, so || expression will be evaluated first.
if ( a= (8 || b==5) )
8 || b==5 is true
so value 1 is assigned to the 'a' variable
if(a=1) is true so if statement will execute
credits @kiRA
0
As you are sending operations so it is considering 3 as i just change your code to ( (3+1))
It will give you the desired output
Do vote up and follow me if you find it helpful.