meu primeiro commit carinhoso
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
|
||||
namespace ConsoleApp1;
|
||||
|
||||
class Program
|
||||
{
|
||||
|
||||
static void System()
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Black;
|
||||
Console.WriteLine("Bem vindo CARO mundo!!!");
|
||||
Console.BackgroundColor = ConsoleColor.DarkRed;
|
||||
Console.WriteLine("Bom dia, Boa tarde e Boa noite .");
|
||||
}
|
||||
|
||||
static void Main()
|
||||
{
|
||||
Console.BackgroundColor = ConsoleColor.Red;
|
||||
Program.System();
|
||||
Program.Job();
|
||||
Program.Work();
|
||||
int i = 0;
|
||||
int j = 0;
|
||||
for (; true;)
|
||||
|
||||
{
|
||||
|
||||
if (i < 10)
|
||||
{
|
||||
int n = i * 10;
|
||||
Program.Contador(n + 1,n + 10);
|
||||
i = i + 1;
|
||||
j = j + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
Console.WriteLine($"{i} {j}");
|
||||
|
||||
//minha ideia era deixar mais organizado o "Main" então deixei apenas "Program" nele
|
||||
}
|
||||
static void Job()
|
||||
{
|
||||
Console.BackgroundColor = ConsoleColor.Yellow;
|
||||
Console.WriteLine("para aqueles que ouviram as minhas palavras");
|
||||
Console.BackgroundColor = ConsoleColor.DarkYellow;
|
||||
Console.WriteLine("O meu anuncio é . . .");
|
||||
}
|
||||
|
||||
static void Work()
|
||||
{
|
||||
Console.BackgroundColor = ConsoleColor.Green;
|
||||
Console.WriteLine("Agradeça por tudo que há em seu lar, pois nem sempre haverá algo .");
|
||||
Console.BackgroundColor = ConsoleColor.DarkGreen;
|
||||
string s = "Por isso chamamos o tempo atual de 1PR0SEN678 ";
|
||||
Console.WriteLine(s);
|
||||
//ideia de fazer com que cada linha tivesse cor e fosse em ordem das cores do arco-íris
|
||||
}
|
||||
|
||||
static void Contador(int inicio, int fim)
|
||||
{
|
||||
Console.BackgroundColor = ConsoleColor.DarkBlue;
|
||||
for (int i = inicio; i <= fim; i = i + 1)
|
||||
{
|
||||
Console.Write($" {i} ");
|
||||
}
|
||||
Console.WriteLine();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user