Share 99 bottles of beer c#

## 99 chai bia trong C#

`` `C#
// 99 chai bia

sử dụng hệ thống;

Không gian tên _99bottlesofbeer
{
Chương trình lớp học
{
static void main (String [] args)
{
// Tuyên bố số chai bia.
INT chaifbeer = 99;

// Trong khi vẫn còn những chai bia, hãy hát bài hát.
while (Chaifbeer> 0)
{
// In số chai bia.
Console.WriteLine ("{0} chai bia trên tường, {0} chai bia.", Chaifbeer);

// Lấy một chai bia và hát về nó.
Console.WriteLine ("Hãy hạ một, vượt qua nó, {0} chai bia trên tường.", Chaifbeer - 1);

// Giảm số lượng chai bia.
Chaifbeer--;

// Chờ người dùng nhấn Enter.
Console.Readline ();
}

// Khi không có thêm chai bia, hãy hát câu cuối cùng.
Console.WriteLine ("Không còn chai bia trên tường, không còn chai bia.");
Console.WriteLine ("Đi đến cửa hàng và mua thêm một số, 99 chai bia trên tường.");
}
}
}
`` `

## hashtags

* #99bottlesofbeer
* #C#
* #Programming
* #mã hóa
* #SoftWaredevelopment
=======================================
## 99 Bottles of Beer in C#

```c#
// 99 Bottles of Beer

using System;

namespace _99BottlesOfBeer
{
class Program
{
static void Main(string[] args)
{
// Declare the number of bottles of beer.
int bottlesOfBeer = 99;

// While there are still bottles of beer, sing the song.
while (bottlesOfBeer > 0)
{
// Print the number of bottles of beer.
Console.WriteLine("{0} bottles of beer on the wall, {0} bottles of beer.", bottlesOfBeer);

// Take a bottle of beer and sing about it.
Console.WriteLine("Take one down, pass it around, {0} bottles of beer on the wall.", bottlesOfBeer - 1);

// Decrement the number of bottles of beer.
bottlesOfBeer--;

// Wait for the user to press Enter.
Console.ReadLine();
}

// When there are no more bottles of beer, sing the final verse.
Console.WriteLine("No more bottles of beer on the wall, no more bottles of beer.");
Console.WriteLine("Go to the store and buy some more, 99 bottles of beer on the wall.");
}
}
}
```

## Hashtags

* #99bottlesofbeer
* #C#
* #Programming
* #Coding
* #SoftWaredevelopment
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top