If + means * and * means / and / means %. what is the value of 2+3*5/7?

9.25K viewsGeneral Aptitude

If + means * and * means / and / means %. what is the value of 2+3*5/7?

Anonymous Posted new comment November 11, 2022

wake up guys and see modulo % can return only integer value.
So answer will be 1 and all other answers are wrong. You can
run your equation in C code and check the output.

So in this question, the principle of BODMAS should be used:

2+3*5/7

Step 1: 5/7 and since / is Mod, value returned will be 5. Then

Step 2: 3*5 and since * is / we get 3/5, then

Step 3: 2+(3/5) and since + is * we get 6/5 which is 1.2(final answer)

Add a Comment
0

Ans is 1.2

Admin Changed status to publish November 9, 2022
0
0 Comments

1.2 is the accurate answer

Admin Changed status to publish November 9, 2022
0
0 Comments

the answer is 1.2

Admin Changed status to publish November 8, 2022
0
0 Comments

4.14285

Admin Changed status to publish November 8, 2022
0

2+3*5/7 -> 2*3/5%7

5%7=5

3/5=0.6

2*0.6=1.2

ans=1.2

Admin Changed status to publish November 8, 2022
0
Write your answer.