Posts

Finding the closest number divisible by 7 for a certain number.

Finding the closest number divisible by 7 for a certain number. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ManualResetEvent_ {     class Number     {         public static void Main()         {             numberCloseTo(5676);             Console .ReadLine();         }         public static void numberCloseTo( int mynumber)         {              int low, high, next_number, matchedvalue;             if (mynu...

Encryption of a message with the help of XOR

Encryption of a message with the help of XOR using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ManualResetEvent_ {     class Number     {         public static void Main()         {             string msg = "Hello World !! This is C#" ;             char k = '.' ;             StringBuilder strbdr = new StringBuilder ();             foreach ( char c in msg)             {                 strbdr.Append(...