Difference between revisions of "C Sharp"
From Teknologisk videncenter
(Created page with " '''Kode eksempler''' Console.WriteLine("Skriv din alder"); string alder = Console.ReadLine(); int age; age = Convert.ToInt32(alder); if (((age > 20) && (age < 80)) || age != ...") |
(No difference)
|
Revision as of 13:21, 5 December 2016
Kode eksempler
Console.WriteLine("Skriv din alder"); string alder = Console.ReadLine(); int age; age = Convert.ToInt32(alder);
if (((age > 20) && (age < 80)) || age != 21) {
} else { Console.WriteLine("gå hjem og spil OverWatch"); }
Console.ReadLine();