-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
162 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters