Skip to content

Commit

Permalink
update 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ne0x86 committed Oct 16, 2018
1 parent 07e7d34 commit 680b450
Show file tree
Hide file tree
Showing 8 changed files with 162 additions and 1 deletion.
25 changes: 25 additions & 0 deletions ConsoleApp1/ConsoleApp1.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28010.2041
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{82335C90-AC20-4520-8391-AEF7136775A9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{82335C90-AC20-4520-8391-AEF7136775A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{82335C90-AC20-4520-8391-AEF7136775A9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{82335C90-AC20-4520-8391-AEF7136775A9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{82335C90-AC20-4520-8391-AEF7136775A9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8DD37A2A-D163-4B55-8AAE-32B93DF96DBA}
EndGlobalSection
EndGlobal
8 changes: 8 additions & 0 deletions ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

</Project>
38 changes: 38 additions & 0 deletions ConsoleApp1/ConsoleApp1/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using System;

namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Dime un día del mes");
int dia = int.Parse(Console.ReadLine());
while (dia == 0)
{
Console.WriteLine("El intérvalo es de 1 a 31, prueba otra vez");
dia = int.Parse(Console.ReadLine());
}
Console.WriteLine("Dime mes");
String mes = Console.ReadLine();

if (dia <= 31 && mes == "enero" || mes == "marzo" || mes == "mayo" || mes == "julio" || mes == "agosto" || mes == "octubre" || mes == "diciembre")
{
Console.WriteLine("La fecha es correcta");
}
else if (dia <= 30 && mes == "abril" || mes == "junio" || mes == "septiembre" || mes == "noviembre")
{
Console.WriteLine("La fecha es correcta");
}
else if (dia <= 28 && mes == "febrero")
{
Console.WriteLine("La fecha es correcta");
}
else
{
Console.WriteLine("La fecha es incorrecta");
}

}
}
}
40 changes: 40 additions & 0 deletions ConsoleApp1/ConsoleApp1/identificar fecha.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using System;

namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Dime un día del mes");
int dia = int.Parse(Console.ReadLine());
while (dia == 0)
{
Console.WriteLine("El intérvalo es de 1 a 31, prueba otra vez");
dia = int.Parse(Console.ReadLine());
}
Console.WriteLine("Dime mes");
String mes = Console.ReadLine();

if (dia <= 31 && mes == "enero" || mes == "marzo" || mes == "mayo" || mes == "julio" || mes == "agosto" || mes == "octubre" || mes == "diciembre")
{
Console.WriteLine("La fecha es correcta");
}
else if (dia <= 30 && mes == "abril" || mes == "junio" || mes == "septiembre" || mes == "noviembre")
{
Console.WriteLine("La fecha es correcta");
}
else if (dia <= 28 && mes == "febrero")
{
Console.WriteLine("La fecha es correcta");
}
else
{
Console.WriteLine("La fecha es incorrecta");
}

String [] coches = new String [3];

}
}
}
25 changes: 25 additions & 0 deletions ConsoleApp2/ConsoleApp2.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28010.2041
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "ConsoleApp2\ConsoleApp2.csproj", "{D8B9546C-4AA7-45AC-84A2-26FD2C589E4F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D8B9546C-4AA7-45AC-84A2-26FD2C589E4F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D8B9546C-4AA7-45AC-84A2-26FD2C589E4F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D8B9546C-4AA7-45AC-84A2-26FD2C589E4F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D8B9546C-4AA7-45AC-84A2-26FD2C589E4F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E5E628D5-36BD-4F98-8A76-0E55A6E3CDFA}
EndGlobalSection
EndGlobal
8 changes: 8 additions & 0 deletions ConsoleApp2/ConsoleApp2/ConsoleApp2.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

</Project>
17 changes: 17 additions & 0 deletions ConsoleApp2/ConsoleApp2/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;

namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
int a = 1;
if (a < 2)
{
Console.WriteLine("jejeje");
}
Console.WriteLine("Hello World!");
}
}
}
2 changes: 1 addition & 1 deletion Juego Numero Secreto/Juego Numero Secreto/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void Main(string[] args)
Console.WriteLine("Has acertado!!");
Console.WriteLine("Fin del juego!");
}
if (intentos == 0)
else if (intentos == 0)
{
Console.WriteLine("Te has quedado sin intentos");
Console.WriteLine("Fin del juego");
Expand Down

0 comments on commit 680b450

Please sign in to comment.