Advertisement
d1xt1r

PIDInformation

Mar 23rd, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.07 KB | None | 0 0
  1. using System;
  2.  
  3. class PIDInformation
  4. {
  5.     static void Main()
  6.     {
  7.         Console.Title = "PID Information";
  8.  
  9.         Console.WriteLine("Please enter your PID");
  10.         long pid = Convert.ToInt64(Console.ReadLine());
  11.         var penultimate = (pid / 100000000) % 10;
  12.  
  13.         if (pid % 2 == 0)
  14.         {
  15.             Console.WriteLine("Your gender is MALE");
  16.         }
  17.         else
  18.         {
  19.             Console.WriteLine("Your gender is FEMALE");
  20.         }
  21.         string a = pid.ToString();
  22.         string b = a.Substring(6, 3);
  23.         int c = Convert.ToInt32(b);
  24.  
  25.         if (c <= 43)
  26.         {
  27.             Console.WriteLine("You're born in Blagoevgrad");
  28.         }
  29.         else if (c >= 44 && c <= 93)
  30.         {
  31.             Console.WriteLine("You're born in Burgas");
  32.         }
  33.         else if (c >= 094 && c <= 139)
  34.         {
  35.             Console.WriteLine("You're born in Varna");
  36.         }
  37.         else if (c >= 140 && c <= 169)
  38.         {
  39.             Console.WriteLine("You're born in Veliko Tarnovo");
  40.         }
  41.         else if (c >= 170 && c <= 183)
  42.         {
  43.             Console.WriteLine("You're born in Vidin");
  44.         }
  45.         else if (c >= 184 && c <= 217)
  46.         {
  47.             Console.WriteLine("You're born in in Vratza");
  48.         }
  49.         else if (c >= 218 && c <= 233)
  50.         {
  51.             Console.WriteLine("You're born in Gabrovo");
  52.         }
  53.         else if (c >= 234 && c <= 281)
  54.         {
  55.             Console.WriteLine("You're born in Kardjali");
  56.         }
  57.         else if (c >= 282 && c <= 301)
  58.         {
  59.             Console.WriteLine("You're born in Kustendil");
  60.         }
  61.         else if (c >= 302 && c <= 319)
  62.         {
  63.             Console.WriteLine("You're born in Lovech");
  64.         }
  65.         else if (c >= 320 && c <= 341)
  66.         {
  67.             Console.WriteLine("You're born in Montana");
  68.         }
  69.         else if (c >= 342 && c <= 377)
  70.         {
  71.             Console.WriteLine("You're born in Pazardjik");
  72.         }
  73.         else if (c >= 378 && c <= 395)
  74.         {
  75.             Console.WriteLine("You're born in Pernik");
  76.         }
  77.         else if (c >= 396 && c <= 435)
  78.         {
  79.             Console.WriteLine("You're born in Pleven");
  80.         }
  81.         else if (c >= 436 && c <= 501)
  82.         {
  83.             Console.WriteLine("You're born in Plovdiv");
  84.         }
  85.         else if (c >= 502 && c <= 527)
  86.         {
  87.             Console.WriteLine("You're born in Razgrad");
  88.         }
  89.         else if (c >= 528 && c <= 555)
  90.         {
  91.             Console.WriteLine("You're born in Ruse");
  92.         }
  93.         else if (c >= 556 && c <= 575)
  94.         {
  95.             Console.WriteLine("You're born in Silistra");
  96.         }
  97.         else if (c >= 576 && c <= 601)
  98.         {
  99.             Console.WriteLine("You're born in Sliven");
  100.         }
  101.         else if (c >= 602 && c <= 623)
  102.         {
  103.             Console.WriteLine("You're born in Smolyan");
  104.         }
  105.         else if (c >= 624 && c <= 721)
  106.         {
  107.             Console.WriteLine("You're born in Sofia city");
  108.         }
  109.         else if (c >= 722 && c <= 751)
  110.         {
  111.             Console.WriteLine("You're born in Sofia region");
  112.         }
  113.         else if (c >= 752 && c <= 789)
  114.         {
  115.             Console.WriteLine("You're born in Stara Zagora");
  116.         }
  117.         else if (c >= 790 && c <= 821)
  118.         {
  119.             Console.WriteLine("You're born in Dobrich");
  120.         }
  121.         else if (c >= 822 && c <= 843)
  122.         {
  123.             Console.WriteLine("You're born in Targovishte");
  124.         }
  125.         else if (c >= 844 && c <= 871)
  126.         {
  127.             Console.WriteLine("You're born in Haskovo");
  128.         }
  129.         else if (c >= 872 && c <= 903)
  130.         {
  131.             Console.WriteLine("You're born in Shumen");
  132.         }
  133.         else if (c >= 904 && c <= 925)
  134.         {
  135.             Console.WriteLine("You're born in Yambol");
  136.         }
  137.         else
  138.         {
  139.             Console.WriteLine("Other");
  140.         }
  141.         Console.ReadLine();
  142.         Console.WriteLine("Press Enter to exit the application");
  143.         Console.ReadLine();
  144.     }
  145. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement