Generation

class from descriptionWed, 10 May 2023

Hace un horóscopo chino con switch

using System; namespace horoscopochino { class Program { static void Main(string[] args) { Console.WriteLine("Ingrese su año de nacimiento"); int año = int.Parse(Console.ReadLine()); int signo = año % 12; switch (signo) { case 0: Console.WriteLine("Mono"); break; case 1: Console.WriteLine("Gallo"); break; case 2: Console.WriteLine("Perro"); break; case 3: Console.WriteLine("Cerdo"); break; case 4: Console.WriteLine("Rata"); break; case 5: Console.WriteLine("Buey"); break; case 6: Console.WriteLine("Tigre"); break; case 7: Console.WriteLine("Conejo"); break;

Want to kickstart your project?Use the new AI Studio to create your code