meu primeiro commit carinhoso

This commit is contained in:
2026-11-17 15:55:29 -03:00
commit b678264787
33 changed files with 973 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
namespace Qual_a_senha;
class Program
{
static void Main()
{
Console.ForegroundColor = ConsoleColor.DarkBlue;
Console.WriteLine("Digite a senha:");
string senha = Console.ReadLine();
string senhasecreta = "dragao";
while (senha != senhasecreta)
{
if (senha != senhasecreta)
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("...Senha invalida");
senha = Console.ReadLine();
}
Program.VerificarSenha(senha);
}
static bool VerificarSenha(string senha)
{
string senhasecreta = "dragão";
if (senha == "dragao")
{
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.WriteLine($"Senha correta {senhasecreta} Acesso Permitido");
return true;
}
return false;
}
}
+11
View File
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>Qual_a_senha</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
+16
View File
@@ -0,0 +1,16 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Qual a senha", "Qual a senha.csproj", "{07A9DE66-08E6-4100-8A11-C014BB9416ED}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{07A9DE66-08E6-4100-8A11-C014BB9416ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{07A9DE66-08E6-4100-8A11-C014BB9416ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
{07A9DE66-08E6-4100-8A11-C014BB9416ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
{07A9DE66-08E6-4100-8A11-C014BB9416ED}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal