Operators in Managed COBOL
*> Comparison
= < > <= >= <>
*> Arithmetic
+ - * /
function mod
*>no direct COBOL equivalent to integer division
**
*> Assignment
move, set, compute
*> Bitwise
b-and, b-or, b-xor, b-not, b-left, b-right
*> Logical
and, or, not
Operators in C#
// Comparison
== < > <= >= !=
// Arithmetic
+ - * /
% (mod)
/ (integer division if both operands are ints)
Math.Pow(x, y)
// Assignment
= += -= *= /= %= &= |= ^= <<= >>= ++ --
// Bitwise
& | ^ ~ << >>
// Logical
&& || & | ^ !
//Note: && and || perform short-circuit logical evaluations
// String Concatenation
+