Repository navigation
Expand file tree
/
Copy pathProgram.cs
More file actions
52 lines (40 loc) · 1.47 KB
/
Copy pathProgram.cs
File metadata and controls
52 lines (40 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using System.Data;
namespace My_First_Console_App
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
//OOP => Object Oriented Programming => Nesne Yönelimli progamlama
// Java, PHP, C# , VB, TypeScript
//Class => Çalışan bir yapıdır. Daha sonra çağrılabilir. Her çalışma class'da çalışılır.
//string =>
//int =>
// boolean => doğru yanlış
//date
//object
// Yukarıdaki tipler ilkel tiplerdir => primitive tip
//string nameLastname = "Berre Küçük"; //Değiken oluşturma
//string email = "berrekucuk@hotmail.com";
//isimlendirme Kuralları
//values = değişken
//ram //bellek //memory =>ram parçası
string name = "Berre";
int age = 33;
decimal money = 100.10m;
double money2 = 100.10;
DateTime now = DateTime.Now ;
bool isTrue = true; // 0 => yanlış (False) | 1 => doğru (True)
object user = new { };
Console.WriteLine(name);
Console.WriteLine(age);
Console.WriteLine(money);
Console.WriteLine( money2);
Console.WriteLine(now);
Console.WriteLine(isTrue);
// ctrl+d kodu aşağıya kopyalar
//memory tutulma
}
}
}