Facebook
From Scorching Sloth, 5 Years ago, written in C#.
This paste is a reply to Untitled from Reliable Owl - go back
Embed
Viewing differences between Untitled and Re: Untitled
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Szyfry
{
    class Program
    {
        static public int klucz = 16;
        static void Main()
        {
            string text = "Ala ma kota";

            foreach (char c in text) {

                int unicode = c;
                unicode = unicode - 16;
                Console.WriteLine("Po zakodowaniu:");\n                Console.WriteLine((char)unicode);
                Console.WriteLine("Po odakodowaniu:");\n                unicode = unicode + 16;\n                Console.WriteLine((char)unicode);\n                Console.WriteLine();\n                Console.WriteLine("===================");\n            }
            Console.ReadKey();

        }
    }
}