+ 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

5th May 2019, 10:37 AM
Madhav Tripathi
Madhav Tripathi - avatar
5 Antworten
+ 2
OK, thanks!
5th May 2019, 1:43 PM
Madhav Tripathi
Madhav Tripathi - avatar
+ 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
5th May 2019, 1:49 PM
Werg Serium
Werg Serium - avatar
+ 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
28th May 2019, 5:53 PM
Madhav Tripathi
Madhav Tripathi - avatar
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.
5th May 2019, 10:42 AM
Akbar Khan