Initial commit

This commit is contained in:
2018-02-22 23:01:00 +01:00
commit 8a754080ba
378 changed files with 2723 additions and 0 deletions

33
9.2-Scope/Scope.cs Normal file
View File

@@ -0,0 +1,33 @@
using System;
class Scope {
public static int classVar = 325;
public static void do_something(int indata) {
Console.WriteLine("ClassVar i do_something: {0}", classVar);
Console.WriteLine("Indata: {0}", indata);
}
public static void Main() {
int funkVar = 10;
for (int i = 0; i < 4; i++) {
Console.WriteLine("Variabeln i={0}", i);
}
if (funkVar > 7) {
int ifVar = 65;
Console.WriteLine("ifVar:" + ifVar);
}
Console.WriteLine("Funkvar: {0}", funkVar);
//Console.WriteLine("Raknaren i: {0}", i);
//Console.WriteLine("ifVar: {0}", ifVar);
//Console.WriteLine("SistVar: {0}", sistVar);
//int sistVar = 564;
Console.WriteLine("ClassVar: {0}", classVar);
do_something(111);
Console.WriteLine("Indata:{0}", indata);
}
}