Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Sub Main()
Dim totalPersonas As Integer
Dim precioPlato As Double = 4000
Dim totalPagar As Double
' Solicitar la cantidad total de personas
Console.Write("Ingrese la cantidad total de personas: ")
totalPersonas = Convert.ToInt32(Console.ReadLine())
' Calcular el monto a pagar sin descuento
If totalPersonas <= 100 Then
totalPagar = totalPersonas * precioPlato
Else
' Aplicar el descuento del 30% si hay más de 100 personas
totalPagar = (totalPersonas * precioPlato) * 0.7
End If
' Mostrar el monto total a pagar
Console.WriteLine("El monto total a pagar es: " & totalPagar.ToString("C"))
Console.ReadLine()
End Sub
End Module