-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataTypes.cs
More file actions
30 lines (28 loc) · 885 Bytes
/
Copy pathDataTypes.cs
File metadata and controls
30 lines (28 loc) · 885 Bytes
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C_Sharp_Lesson_One
{
internal class DataTypes
{
public static void Data()
{
string phrase = "C sharp course";
char grade = 'A';
int myAge = 40;
double gpa = 3.6; // float, double, decimal
bool isMale = true;
// here, "home", 30 and false are constants.
Console.WriteLine("home"); // home
Console.WriteLine(30); // 30
Console.WriteLine(false); // false
Console.WriteLine(myAge); // 40
Console.WriteLine(isMale); // true
Console.WriteLine(phrase); // C sharp course
Console.WriteLine(grade); // A
Console.WriteLine(gpa); // 3.6
}
}
}