Operators in C++

12 / 2 5 10 \color{#3D99F6}{12} \color{#20A900}{/} \color{#3D99F6}{2} \color{#20A900}{*} \color{#3D99F6}{5} - \color{#3D99F6}{10} m o d \color{#20A900}{mod} 3 7 + 1 3 = ? \color{#3D99F6}{3} \color{#20A900}{-} \color{#3D99F6}{7} \color{#20A900}{+}\color{#3D99F6}{1} \color{#20A900}{*}\color{#3D99F6}{3} \color{#20A900}{=} \color{#D61F06}{\,?}

Details and Assumptions:

  • B l u e \color{#3D99F6}{Blue} colored values are operands.

  • G r e e n \color{#20A900}{Green} colored characters are operators.

  • m \color{#3D99F6}{m} m o d \color{#20A900}{mod} n \color{#3D99F6}{n} gives remainder when m \color{#3D99F6}{m} is divided by n \color{#3D99F6}{n} .


this problem is a part of the set Fundamental Programming
25 32 15 23

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Zeeshan Ali
Jan 26, 2015

12 / 2 5 10 \color{#3D99F6}{12} \color{#20A900}{/} \color{#3D99F6}{2} \color{#20A900}{*} \color{#3D99F6}{5} - \color{#3D99F6}{10} m o d \color{#20A900}{mod} 3 7 + 1 3 \color{#3D99F6}{3} \color{#20A900}{-} \color{#3D99F6}{7} \color{#20A900}{+}\color{#3D99F6}{1} \color{#20A900}{*}\color{#3D99F6}{3}

= 12 / 2 5 ( 1 ) 7 + 1 3 = 25 = \, \color{#3D99F6}{12} \color{#20A900}{/} \color{#3D99F6}{2} \color{#20A900}{*} \color{#3D99F6}{5} - (1) \color{#20A900}{-} \color{#3D99F6}{7} \color{#20A900}{+}\color{#3D99F6}{1} \color{#20A900}{*}\color{#3D99F6}{3} \, = \, \color{#D61F06}{\boxed{25}}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...