Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nigammishra committed Oct 14, 2024
1 parent 566da12 commit d505c6c
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 24 deletions.
25 changes: 25 additions & 0 deletions C_Sharp_journey.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 Version 17
VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "C_Sharp_journey", "C_Sharp_journey.csproj", "{67FEDBA4-B181-4506-A7CC-F043AE70DF17}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{67FEDBA4-B181-4506-A7CC-F043AE70DF17}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{67FEDBA4-B181-4506-A7CC-F043AE70DF17}.Debug|Any CPU.Build.0 = Debug|Any CPU
{67FEDBA4-B181-4506-A7CC-F043AE70DF17}.Release|Any CPU.ActiveCfg = Release|Any CPU
{67FEDBA4-B181-4506-A7CC-F043AE70DF17}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B9E32DF4-6472-4CBB-913D-8CD30D480E24}
EndGlobalSection
EndGlobal
44 changes: 22 additions & 22 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -461,27 +461,27 @@
//======================= rectangletosquare ========================//


using System;

class rectangletosquare
{
static void Main()
{
Console.WriteLine("Enter the length of the rectangle:");
double length = Convert.ToDouble(Console.ReadLine());

Console.WriteLine("Enter the breadth of the rectangle:");
double breadth = Convert.ToDouble(Console.ReadLine());

if (length == breadth)
{
Console.WriteLine("The rectangle is a square.");
}
else
{
Console.WriteLine("The rectangle is not a square.");
}
}
}
// using System;

// class rectangletosquare
// {
// static void Main()
// {
// Console.WriteLine("Enter the length of the rectangle:");
// double length = Convert.ToDouble(Console.ReadLine());

// Console.WriteLine("Enter the breadth of the rectangle:");
// double breadth = Convert.ToDouble(Console.ReadLine());

// if (length == breadth)
// {
// Console.WriteLine("The rectangle is a square.");
// }
// else
// {
// Console.WriteLine("The rectangle is not a square.");
// }
// }
// }

//======================= End ========================//
2 changes: 1 addition & 1 deletion obj/Debug/net8.0/C_Sharp_journey.AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[assembly: System.Reflection.AssemblyCompanyAttribute("C_Sharp_journey")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+566da12254df7557092fb29fa19465941ed60ce9")]
[assembly: System.Reflection.AssemblyProductAttribute("C_Sharp_journey")]
[assembly: System.Reflection.AssemblyTitleAttribute("C_Sharp_journey")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
Expand Down
2 changes: 1 addition & 1 deletion obj/Debug/net8.0/C_Sharp_journey.AssemblyInfoInputs.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e1dbeabb329b1fea775cce69ea37eade6ac5cea79ded0f3c5417fc9ed8037444
8999672006c2f62d427360b7018b50abd9f0b22bd60811fd16fd43fc9f253c54

0 comments on commit d505c6c

Please sign in to comment.