Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CSharpFundamentals/Set1-Task2/Set1-Task2.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.32319.34
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Set1-Task2", "Set1-Task2\Set1-Task2.csproj", "{E2FF6BA5-83D8-4015-B5BE-E1EAEFC3A588}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Set1-Task2", "Set1-Task2\Set1-Task2.csproj", "{E2FF6BA5-83D8-4015-B5BE-E1EAEFC3A588}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Set1-Task5", "Set1-Task5\Set1-Task5.csproj", "{9B31CC3C-9D1B-4E7B-AF19-00D36F17196E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -15,6 +17,10 @@ Global
{E2FF6BA5-83D8-4015-B5BE-E1EAEFC3A588}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E2FF6BA5-83D8-4015-B5BE-E1EAEFC3A588}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E2FF6BA5-83D8-4015-B5BE-E1EAEFC3A588}.Release|Any CPU.Build.0 = Release|Any CPU
{9B31CC3C-9D1B-4E7B-AF19-00D36F17196E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9B31CC3C-9D1B-4E7B-AF19-00D36F17196E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9B31CC3C-9D1B-4E7B-AF19-00D36F17196E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9B31CC3C-9D1B-4E7B-AF19-00D36F17196E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
10 changes: 10 additions & 0 deletions CSharpFundamentals/Set1-Task2/Set1-Task5/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Random number = new Random();
int randomNumber = number.Next(1,7);
Console.WriteLine("\n The random number is: = "+ randomNumber);

DateTime currentDate = DateTime.Now;
Console.WriteLine("\n Todays date is := "+ currentDate.ToString());

DateTime addnumber = currentDate.AddDays(randomNumber);
Console.WriteLine("\n Added a random number to today's date := "+addnumber.ToString());
Console.ReadLine();
11 changes: 11 additions & 0 deletions CSharpFundamentals/Set1-Task2/Set1-Task5/Set1-Task5.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<RootNamespace>Set1_Task5</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>