meu primeiro commit carinhoso
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
namespace good_numbers;
|
||||
|
||||
class Program
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
Console.WriteLine("vamos contar de 1 até...10!!!");
|
||||
Pensador(1, 10);
|
||||
|
||||
int numero = 10;
|
||||
while (numero >= 1)
|
||||
{
|
||||
Console.WriteLine(numero);
|
||||
numero--;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
static void Pensador(int inicio, int final)
|
||||
{
|
||||
if (inicio % 2 != 0)
|
||||
{
|
||||
inicio++;
|
||||
}
|
||||
for (int i = inicio; i <= final; i += 2)
|
||||
{
|
||||
|
||||
Console.WriteLine(i);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
static void F1()
|
||||
{
|
||||
Pensador
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RootNamespace>good_numbers</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "good numbers", "good numbers.csproj", "{41AEBE57-5AAE-4513-87C5-9A186A0FC8CC}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{41AEBE57-5AAE-4513-87C5-9A186A0FC8CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{41AEBE57-5AAE-4513-87C5-9A186A0FC8CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{41AEBE57-5AAE-4513-87C5-9A186A0FC8CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{41AEBE57-5AAE-4513-87C5-9A186A0FC8CC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Reference in New Issue
Block a user