Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class PIDInformation
- {
- static void Main()
- {
- Console.Title = "PID Information";
- Console.WriteLine("Please enter your PID");
- long pid = Convert.ToInt64(Console.ReadLine());
- var penultimate = (pid / 100000000) % 10;
- if (pid % 2 == 0)
- {
- Console.WriteLine("Your gender is MALE");
- }
- else
- {
- Console.WriteLine("Your gender is FEMALE");
- }
- string a = pid.ToString();
- string b = a.Substring(6, 3);
- int c = Convert.ToInt32(b);
- if (c <= 43)
- {
- Console.WriteLine("You're born in Blagoevgrad");
- }
- else if (c >= 44 && c <= 93)
- {
- Console.WriteLine("You're born in Burgas");
- }
- else if (c >= 094 && c <= 139)
- {
- Console.WriteLine("You're born in Varna");
- }
- else if (c >= 140 && c <= 169)
- {
- Console.WriteLine("You're born in Veliko Tarnovo");
- }
- else if (c >= 170 && c <= 183)
- {
- Console.WriteLine("You're born in Vidin");
- }
- else if (c >= 184 && c <= 217)
- {
- Console.WriteLine("You're born in in Vratza");
- }
- else if (c >= 218 && c <= 233)
- {
- Console.WriteLine("You're born in Gabrovo");
- }
- else if (c >= 234 && c <= 281)
- {
- Console.WriteLine("You're born in Kardjali");
- }
- else if (c >= 282 && c <= 301)
- {
- Console.WriteLine("You're born in Kustendil");
- }
- else if (c >= 302 && c <= 319)
- {
- Console.WriteLine("You're born in Lovech");
- }
- else if (c >= 320 && c <= 341)
- {
- Console.WriteLine("You're born in Montana");
- }
- else if (c >= 342 && c <= 377)
- {
- Console.WriteLine("You're born in Pazardjik");
- }
- else if (c >= 378 && c <= 395)
- {
- Console.WriteLine("You're born in Pernik");
- }
- else if (c >= 396 && c <= 435)
- {
- Console.WriteLine("You're born in Pleven");
- }
- else if (c >= 436 && c <= 501)
- {
- Console.WriteLine("You're born in Plovdiv");
- }
- else if (c >= 502 && c <= 527)
- {
- Console.WriteLine("You're born in Razgrad");
- }
- else if (c >= 528 && c <= 555)
- {
- Console.WriteLine("You're born in Ruse");
- }
- else if (c >= 556 && c <= 575)
- {
- Console.WriteLine("You're born in Silistra");
- }
- else if (c >= 576 && c <= 601)
- {
- Console.WriteLine("You're born in Sliven");
- }
- else if (c >= 602 && c <= 623)
- {
- Console.WriteLine("You're born in Smolyan");
- }
- else if (c >= 624 && c <= 721)
- {
- Console.WriteLine("You're born in Sofia city");
- }
- else if (c >= 722 && c <= 751)
- {
- Console.WriteLine("You're born in Sofia region");
- }
- else if (c >= 752 && c <= 789)
- {
- Console.WriteLine("You're born in Stara Zagora");
- }
- else if (c >= 790 && c <= 821)
- {
- Console.WriteLine("You're born in Dobrich");
- }
- else if (c >= 822 && c <= 843)
- {
- Console.WriteLine("You're born in Targovishte");
- }
- else if (c >= 844 && c <= 871)
- {
- Console.WriteLine("You're born in Haskovo");
- }
- else if (c >= 872 && c <= 903)
- {
- Console.WriteLine("You're born in Shumen");
- }
- else if (c >= 904 && c <= 925)
- {
- Console.WriteLine("You're born in Yambol");
- }
- else
- {
- Console.WriteLine("Other");
- }
- Console.ReadLine();
- Console.WriteLine("Press Enter to exit the application");
- Console.ReadLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement