¡GoConqr estrena diseño! Cuéntanos qué te parece.

Apuntes

Sin título

Симеон Енгьозов Inglés 1 página

Contenido del apunte (1)

Página 1

Skip to content

Using 7th Secondary school "Nayden Gerov" Mail with screen readers

Enable desktop notifications for 7th Secondary school "Nayden Gerov" Mail. OK No thanks

Conversations

Program PoliciesPowered by

Google

Last account activity: 1 hour ago

Details

namespace ConsoleApp1 { internal class Program { static void Main(string[] args) { //int day = int.Parse(Console.ReadLine()); //switch (day) //{ // case 1: // Console.WriteLine("Cardio training"); // break; // case 2: // Console.WriteLine("Weight lifting"); // break; // case 3: // Console.WriteLine("Yoga and Pilates"); // break; // case 4: // Console.WriteLine("Swimming"); // break; // case 5: // Console.WriteLine("Boxing"); // break; // case 6: // case 7: // Console.WriteLine("Rest day"); // break; // default: // //if (day == 6 || day == 7) // // Console.WriteLine("Rest day"); // //else // Console.WriteLine("Wrong day!"); // break; //} int vehicle = int.Parse(Console.ReadLine()); double hours = double.Parse(Console.ReadLine()); if (hours <= 0) { Console.WriteLine("Error!"); } else { double price = 0; double finalPrice = 0; switch (vehicle) { case 1: price = 2; break; case 2: price = 5; break; default: Console.WriteLine("Not valid!"); break; } finalPrice = price * hours; if (hours > 10) { finalPrice = finalPrice * 0.8; } Console.WriteLine(Math.Round(finalPrice, 2)); } } } }

Program1.cs

Displaying Program1.cs.

Información

Descripción
Apunte sobre Sin título, creado por Симеон Енгьозов el 27/04/2026.
Creado por
Симеон Енгьозов · abr 2026
Actualizado
27 abr 2026
Visitas
2
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?