public string Nome { get; set; }
public DateTime Nascimento { get; set; }
public string Cidade { get; set; }
public class TreinoFocadoC
public int Trimestre (DateTime data)
if(data.Month >= 1 && data.Month <= 3)
else if(data.Month >= 4 && data.Month <= 6)
else if(data.Month >= 7 && data.Month <= 9)
else if(data.Month >= 10 && data.Month <= 12)
public string Mes (int mes)
public string PeriodoDia (DateTime data)
if(data.Hour >= 6 && data.Hour <= 11)
else if(data.Hour >= 12 && data.Hour <= 17)
else if(data.Hour >= 18 && data.Hour <= 23)
else if(data.Hour >= 0 && data.Hour <= 5)
public double DiasVida (DateTime nascimento)
TimeSpan a = DateTime.Now - nascimento;
double b = Math.Round(a.TotalDays);
public string QualSigno (DateTime nascimento)
if(nascimento.Month == 1 && nascimento.Day >= 20 || nascimento.Month == 2 && nascimento.Day <= 18)
else if(nascimento.Month == 2 && nascimento.Day >= 19 || nascimento.Month == 3 && nascimento.Day <= 20)
else if(nascimento.Month == 3 && nascimento.Day >= 21 || nascimento.Month == 4 && nascimento.Day <= 20)
else if(nascimento.Month == 4 && nascimento.Day >= 21 || nascimento.Month == 5 && nascimento.Day <= 20)
else if(nascimento.Month == 5 && nascimento.Day >= 21 || nascimento.Month == 6 && nascimento.Day <= 20)
else if(nascimento.Month == 6 && nascimento.Day >= 21 || nascimento.Month == 7 && nascimento.Day <= 22)
else if(nascimento.Month == 7 && nascimento.Day >= 23 || nascimento.Month == 8 && nascimento.Day <= 22)
else if(nascimento.Month == 8 && nascimento.Day >= 23 || nascimento.Month == 9 && nascimento.Day <= 22)
else if(nascimento.Month == 9 && nascimento.Day >= 23 || nascimento.Month == 10 && nascimento.Day <= 22)
else if(nascimento.Month == 10 && nascimento.Day >= 23 || nascimento.Month == 11 && nascimento.Day <= 21)
else if(nascimento.Month == 11 && nascimento.Day >= 22 || nascimento.Month == 12 && nascimento.Day <= 21)
else if(nascimento.Month == 12 && nascimento.Day >= 22 || nascimento.Month == 1 && nascimento.Day <= 19)
public string DataPorExtenso (Pessoa pessoa)
int a = Trimestre(pessoa.Nascimento);
string b = Mes(pessoa.Nascimento.Month);
string c = PeriodoDia(pessoa.Nascimento);
double d = DiasVida(pessoa.Nascimento);
string e = QualSigno(pessoa.Nascimento);
return $"{pessoa.Nome} você nasceu há {d} dias, em uma {c} do dia {pessoa.Nascimento.Day} de {b} ({a}° trimestre) de {pessoa.Nascimento.Year}. Seu signo é: {e}.";
TreinoFocadoC treino = new TreinoFocadoC();
x.Nome = "Igor Lima Charles";
x.Nascimento = new DateTime (2004,08,12);
string a = treino.DataPorExtenso(x);