pause at 2:00
This commit is contained in:
25
C# Full Course for free/13.methods.md
Normal file
25
C# Full Course for free/13.methods.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Methods
|
||||
|
||||
```C#
|
||||
singHappyBirthday();
|
||||
|
||||
static void singHappyBirthday(){
|
||||
|
||||
Console.WriteLine("Happy birthday to you")
|
||||
}
|
||||
```
|
||||
|
||||
## arguments
|
||||
|
||||
```C#
|
||||
String name = "mrsh"
|
||||
int age = 30;
|
||||
|
||||
singHappyBirthday(name, age);
|
||||
|
||||
static void singHappyBirthday(String namem int age){
|
||||
|
||||
Console.WriteLine("Happy birthday to you" + name)
|
||||
Console.WriteLine("you are " + age + "years old")
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user