using System.Collections.Generic;
public class TreinoFocadoC
public string SepararLetras(string frase)
string nova = string.Empty;
for (int i = 0; i < frase.Length; i++)
nova = nova + letra + "-";
public string Inverter(string Frase)
string NovaFrase = string.Empty;
for (int i = 0; i < Frase.Length; i++)
NovaFrase = Letra + NovaFrase;
public bool ApenasCoresPrimarias(List<string> Cores)
bool todasPrimarias = true;
for (int i = 0; i < Cores.Count; i++)
if (Cor != "Azul" && Cor != "Vermelho" && Cor != "Amarelo")
TreinoFocadoC treinoC = new TreinoFocadoC();
string x1 = treinoC.SepararLetras("Professor, perdoa as minhas lições atrasadas");
string x2 = treinoC.Inverter("Ônibus");
bool x3 = treinoC.ApenasCoresPrimarias(new List<string>() { "Amarelo", "Azul" });