Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MyFirstClass
- {
- class Program
- {
- static void PrintPerson(Person p)
- {
- Console.WriteLine("{0} {1} ", p.name, p.email);
- }
- static void Main(string[] args)
- {
- Person p1= new Person();
- p1.name = "Tobias Johansson";
- p1.email = "traxxjoa@gmail.com";
- Person p2 = new Person { name="Alex Östman", email = "alexostman94@gmail.com"};
- Person p3 = new Person { name = "Johnny Lindström", email = "lindstrom9010@gmail.com" };
- Person p4 = new Person { name = "William Eklund ", email = "cedsson@gmail.com" };
- Person p5 = new Person { name = "Anton Eriksson ", email = "antoneriksson89@gmail.com" };
- Person p6 = new Person { name = "Marina Eriksson ", email = "sannymarina@gmail.com" };
- Person p7 = new Person { name = "Semhar Gebremichael ", email = "semitiyos@gmail.com" };
- Person p8 = new Person { name = "Rasmus Gustafsson ", email = "g.rasmus96@gmail.com" };
- Person p9 = new Person { name = "Anton Hedberg ", email = "antonhedberg1995@gmail.com" };
- Person p10 = new Person { name = "Emma Hörnkvist ", email = "emma.horn85@gmail.com" };
- Person p11 = new Person { name = "Alexander Lindgren ", email = "alexander.lindgren13@gmail.com" };
- Person p12 = new Person { name = "Klas Lundberg ", email = "klace.92@gmail.com" };
- Person p13 = new Person { name = "Harri Moilanen ", email = "moilanen.harri@gmail.com" };
- Person p14 = new Person { name = "Jens Nilsson ", email = "nirususonu@gmail.com" };
- Person p15 = new Person { name = "Maud Nyström ", email = "maud.nystrom173@gmail.com" };
- Person p16 = new Person { name = "Patrik Pekkala ", email = "rosatoppar@gmail.com" };
- Person p17 = new Person { name = "Tobias Sjöberg ", email = "tobiassjoberg88@gmail.com" };
- Person p18 = new Person { name = "Per Wallin ", email = "perw58@gmail.com" };
- Person p19 = new Person { name = "Andreas Westberg ", email = "nivox7@gmail.com" };
- Person p20 = new Person { name = "Alexander Vigström ", email = "alexander.vigstrom@gmail.com" };
- Person p21 = new Person { name = "Daniel Wilander ", email = "danielwilander300@gmail.com" };
- Person p22 = new Person { name = "Rasmus Åkerlund ", email = "akerlund.rasmus@gmail.com" };
- PrintPerson(p1);
- PrintPerson(p2);
- PrintPerson(p3);
- PrintPerson(p4);
- PrintPerson(p5);
- PrintPerson(p6);
- PrintPerson(p7);
- PrintPerson(p8);
- PrintPerson(p9);
- PrintPerson(p10);
- PrintPerson(p11);
- PrintPerson(p12);
- PrintPerson(p13);
- PrintPerson(p14);
- PrintPerson(p15);
- PrintPerson(p16);
- PrintPerson(p17);
- PrintPerson(p18);
- PrintPerson(p19);
- PrintPerson(p20);
- PrintPerson(p21);
- PrintPerson(p22);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement