Advertisement
Guest User

kod

a guest
Sep 22nd, 2015
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.27 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 MyFirstClass
  8. {
  9.     class Program
  10.     {
  11.         static void PrintPerson(Person p)
  12.         {
  13.             Console.WriteLine("{0} {1} ", p.name, p.email);
  14.         }
  15.         static void Main(string[] args)
  16.         {
  17.             Person p1= new Person();
  18.             p1.name = "Tobias Johansson";
  19.             p1.email = "traxxjoa@gmail.com";
  20.             Person p2 = new Person { name="Alex Östman", email =  "alexostman94@gmail.com"};
  21.             Person p3 = new Person { name = "Johnny Lindström", email = "lindstrom9010@gmail.com" };
  22.             Person p4 = new Person { name = "William Eklund ", email = "cedsson@gmail.com" };
  23.             Person p5 = new Person { name = "Anton Eriksson ", email = "antoneriksson89@gmail.com" };
  24.             Person p6 = new Person { name = "Marina Eriksson ", email = "sannymarina@gmail.com" };
  25.             Person p7 = new Person { name = "Semhar Gebremichael ", email = "semitiyos@gmail.com" };
  26.             Person p8 = new Person { name = "Rasmus Gustafsson ", email = "g.rasmus96@gmail.com" };
  27.             Person p9 = new Person { name = "Anton Hedberg ", email = "antonhedberg1995@gmail.com" };
  28.             Person p10 = new Person { name = "Emma Hörnkvist ", email = "emma.horn85@gmail.com" };
  29.             Person p11 = new Person { name = "Alexander Lindgren  ", email = "alexander.lindgren13@gmail.com" };
  30.             Person p12 = new Person { name = "Klas Lundberg ", email = "klace.92@gmail.com" };
  31.             Person p13 = new Person { name = "Harri Moilanen  ", email = "moilanen.harri@gmail.com" };
  32.             Person p14 = new Person { name = "Jens Nilsson ", email = "nirususonu@gmail.com" };
  33.             Person p15 = new Person { name = "Maud Nyström ", email = "maud.nystrom173@gmail.com" };
  34.             Person p16 = new Person { name = "Patrik Pekkala ", email = "rosatoppar@gmail.com" };
  35.             Person p17 = new Person { name = "Tobias Sjöberg ", email = "tobiassjoberg88@gmail.com" };
  36.             Person p18 = new Person { name = "Per Wallin ", email = "perw58@gmail.com" };
  37.             Person p19 = new Person { name = "Andreas Westberg ", email = "nivox7@gmail.com" };
  38.             Person p20 = new Person { name = "Alexander Vigström ", email = "alexander.vigstrom@gmail.com" };
  39.             Person p21 = new Person { name = "Daniel Wilander ", email = "danielwilander300@gmail.com" };
  40.             Person p22 = new Person { name = "Rasmus Åkerlund  ", email = "akerlund.rasmus@gmail.com" };
  41.  
  42.             PrintPerson(p1);
  43.             PrintPerson(p2);
  44.             PrintPerson(p3);
  45.             PrintPerson(p4);
  46.             PrintPerson(p5);
  47.             PrintPerson(p6);
  48.             PrintPerson(p7);
  49.             PrintPerson(p8);
  50.             PrintPerson(p9);
  51.             PrintPerson(p10);
  52.             PrintPerson(p11);
  53.             PrintPerson(p12);
  54.             PrintPerson(p13);
  55.             PrintPerson(p14);
  56.             PrintPerson(p15);
  57.             PrintPerson(p16);
  58.             PrintPerson(p17);
  59.             PrintPerson(p18);
  60.             PrintPerson(p19);
  61.             PrintPerson(p20);
  62.             PrintPerson(p21);
  63.             PrintPerson(p22);
  64.             Console.ReadLine();
  65.         }
  66.     }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement