Advertisement
Guest User

Untitled

a guest
Sep 19th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 6.65 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _171110_Gančev_3
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.BackgroundColor = ConsoleColor.White;
  14.             Console.ForegroundColor = ConsoleColor.Black;
  15.             Console.Clear();
  16.  
  17.  
  18.             //aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  19.             char p1 = 'A';
  20.             char p1_hex = '\x0041';
  21.             char p1_cislem = (char)65;
  22.             char p1_uni = '\u0041';
  23.             int p1i = Convert.ToInt32(p1);
  24.             Console.WriteLine(p1 + " " + p1i);
  25.             Console.WriteLine("p_char_znak = 'A'; <> " + p1);
  26.             Console.WriteLine("p_char_hexadecimalne = '\\x0041'; <> " + p1_hex);
  27.             Console.WriteLine("p_char_cislem = (char)65; <> " + p1_cislem);
  28.             Console.WriteLine("p_char_unikodem = '\\u0041' <> " + p1_uni + "\n");
  29.  
  30.             //bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
  31.             char p2 = 'B';
  32.             char p2_hex = '\x0042';
  33.             char p2_cislem = (char)66;
  34.             char p2_uni = '\u0042';
  35.             int p2i = Convert.ToInt32(p2);
  36.             Console.WriteLine(p2 + " " + p2i);
  37.             Console.WriteLine("p_char_znak = 'B'; <> " + p2);
  38.             Console.WriteLine("p_char_hexadecimalne = '\\x0042'; <> " + p2_hex);
  39.             Console.WriteLine("p_char_cislem = (char)66; <> " + p2_cislem);
  40.             Console.WriteLine("p_char_unikodem = '\\u0042' <> " + p2_uni + "\n");
  41.  
  42.  
  43.             //ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
  44.             char p3 = 'C';
  45.             char p3_hex = '\x0043';
  46.             char p3_cislem = (char)67;
  47.             char p3_uni = '\u0043';
  48.             int p3i = Convert.ToInt32(p3);
  49.             Console.WriteLine(p3 + " " + p3i);
  50.             Console.WriteLine("p_char_znak = 'C'; <> " + p3);
  51.             Console.WriteLine("p_char_hexadecimalne = '\\x0043'; <> " + p3_hex);
  52.             Console.WriteLine("p_char_cislem = (char)67; <> " + p3_cislem);
  53.             Console.WriteLine("p_char_unikodem = '\\u0043' <> " + p3_uni + "\n");
  54.  
  55.  
  56.             //ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
  57.             char p4 = 'D';
  58.             char p4_hex = '\x0044';
  59.             char p4_cislem = (char)68;
  60.             char p4_uni = '\u0044';
  61.             int p4i = Convert.ToInt32(p4);
  62.             Console.WriteLine(p4 + " " + p4i);
  63.             Console.WriteLine("p_char_znak = 'D'; <> " + p4);
  64.             Console.WriteLine("p_char_hexadecimalne = '\\x0044'; <> " + p4_hex);
  65.             Console.WriteLine("p_char_cislem = (char)68; <> " + p4_cislem);
  66.             Console.WriteLine("p_char_unikodem = '\\u0044' <> " + p4_uni + "\n");
  67.  
  68.  
  69.             //eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
  70.             char p5 = 'E';
  71.             char p5_hex = '\x0045';
  72.             char p5_cislem = (char)69;
  73.             char p5_uni = '\u0045';
  74.             int p5i = Convert.ToInt32(p5);
  75.             Console.WriteLine(p5 + " " + p5i);
  76.             Console.WriteLine("p_char_znak = 'E'; <> " + p5);
  77.             Console.WriteLine("p_char_hexadecimalne = '\\x0045'; <> " + p5_hex);
  78.             Console.WriteLine("p_char_cislem = (char)69; <> " + p5_cislem);
  79.             Console.WriteLine("p_char_unikodem = '\\u0045' <> " + p5_uni + "\n");
  80.  
  81.  
  82.             //fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
  83.             char p6 = 'F';
  84.             char p6_hex = '\x0046';
  85.             char p6_cislem = (char)70;
  86.             char p6_uni = '\u0046';
  87.             int p6i = Convert.ToInt32(p6);
  88.             Console.WriteLine(p6 + " " + p6i);
  89.             Console.WriteLine("p_char_znak = 'F'; <> " + p6);
  90.             Console.WriteLine("p_char_hexadecimalne = '\\x0046'; <> " + p6_hex);
  91.             Console.WriteLine("p_char_cislem = (char)70; <> " + p6_cislem);
  92.             Console.WriteLine("p_char_unikodem = '\\u0046' <> " + p6_uni + "\n");
  93.  
  94.  
  95.  
  96.             //ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
  97.             char p7 = 'G';
  98.             char p7_hex = '\x0047';
  99.             char p7_cislem = (char)71;
  100.             char p7_uni = '\u0047';
  101.             int p7i = Convert.ToInt32(p7);
  102.             Console.WriteLine(p7 + " " + p7i);
  103.             Console.WriteLine("p_char_znak = 'G'; <> " + p7);
  104.             Console.WriteLine("p_char_hexadecimalne = '\\x0047'; <> " + p7_hex);
  105.             Console.WriteLine("p_char_cislem = (char)71; <> " + p7_cislem);
  106.             Console.WriteLine("p_char_unikodem = '\\u0047' <> " + p7_uni + "\n");
  107.  
  108.  
  109.             //hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
  110.             char p8 = 'H';
  111.             char p8_hex = '\x0048';
  112.             char p8_cislem = (char)72;
  113.             char p8_uni = '\u0048';
  114.             int p8i = Convert.ToInt32(p8);
  115.             Console.WriteLine(p8 + " " + p8i);
  116.             Console.WriteLine("p_char_znak = 'H'; <> " + p8);
  117.             Console.WriteLine("p_char_hexadecimalne = '\\x0048'; <> " + p8_hex);
  118.             Console.WriteLine("p_char_cislem = (char)72; <> " + p8_cislem);
  119.             Console.WriteLine("p_char_unikodem = '\\u0048' <> " + p8_uni + "\n");
  120.  
  121.  
  122.             //iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
  123.             char p9 = 'I';
  124.             char p9_hex = '\x0049';
  125.             char p9_cislem = (char)73;
  126.             char p9_uni = '\u0049';
  127.             int p9i = Convert.ToInt32(p9);
  128.             Console.WriteLine(p9 + " " + p9i);
  129.             Console.WriteLine("p_char_znak = 'I'; <> " + p9);
  130.             Console.WriteLine("p_char_hexadecimalne = '\\x0049'; <> " + p9_hex);
  131.             Console.WriteLine("p_char_cislem = (char)73; <> " + p9_cislem);
  132.             Console.WriteLine("p_char_unikodem = '\\u0049' <> " + p9_uni + "\n");
  133.  
  134.  
  135.             //zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
  136.             char p10 = 'Z';
  137.             char p10_hex = '\x005A';
  138.             char p10_cislem = (char)90;
  139.             char p10_uni = '\u005A';
  140.             int p10i = Convert.ToInt32(p10);
  141.             Console.WriteLine(p10 + " " + p10i);
  142.             Console.WriteLine("p_char_znak = 'Z'; <> " + p10);
  143.             Console.WriteLine("p_char_hexadecimalne = '\\x005A'; <> " + p10_hex);
  144.             Console.WriteLine("p_char_cislem = (char)90; <> " + p10_cislem);
  145.             Console.WriteLine("p_char_unikodem = '\\u005A' <> " + p10_uni + "\n");
  146.             Console.WriteLine("Odentruj!");
  147.             Console.ReadLine();
  148.         }
  149.     }
  150. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement