Answers for "math operations in c#"

C#
2

math operations in c#

Console.WriteLine("" + x);
            Console.WriteLine("x +=" + (x += 5));
            Console.WriteLine("x -=" + (x -= 5));
            Console.WriteLine("x *=" + (x *= 5));
            Console.WriteLine("x /=" + (x /= 5));
            Console.WriteLine("x %=" + (x %= 3));
            Console.WriteLine("x &=" + (x &= 5));
            Console.WriteLine("x ^=" + (x ^= 5));
            Console.WriteLine("x >>=" + (x >>= 5));
            Console.WriteLine("x <<=" + (x <<= 5));
Posted by: Guest on May-10-2021

C# Answers by Framework

Browse Popular Code Answers by Language