diff --git a/.vs/first-contribution/DesignTimeBuild/.dtbcache.v2 b/.vs/first-contribution/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..c8f03ab Binary files /dev/null and b/.vs/first-contribution/DesignTimeBuild/.dtbcache.v2 differ diff --git a/ReverseInteger/Program.cs b/ReverseInteger/Program.cs new file mode 100644 index 0000000..8afd172 --- /dev/null +++ b/ReverseInteger/Program.cs @@ -0,0 +1,25 @@ +namespace ReverseInteger +{ + internal class Program + { + static void Main(string[] args) + { + // Input any integer here + var x = 120; + + Console.WriteLine(ReverseInt(x)); + } + public static int ReverseInt(int x) + { + var reversedX = 0; + while (x != 0) + { + var pop = x % 10; + x /= 10; + + reversedX = reversedX * 10 + pop; + } + return reversedX; + } + } +} \ No newline at end of file diff --git a/ReverseInteger/ReverseInteger.csproj b/ReverseInteger/ReverseInteger.csproj new file mode 100644 index 0000000..74abf5c --- /dev/null +++ b/ReverseInteger/ReverseInteger.csproj @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git a/ReverseInteger/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs b/ReverseInteger/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs new file mode 100644 index 0000000..ed92695 --- /dev/null +++ b/ReverseInteger/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] diff --git a/ReverseInteger/obj/Debug/net6.0/ReverseInteger.AssemblyInfo.cs b/ReverseInteger/obj/Debug/net6.0/ReverseInteger.AssemblyInfo.cs new file mode 100644 index 0000000..fcbd005 --- /dev/null +++ b/ReverseInteger/obj/Debug/net6.0/ReverseInteger.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("ReverseInteger")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("ReverseInteger")] +[assembly: System.Reflection.AssemblyTitleAttribute("ReverseInteger")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/ReverseInteger/obj/Debug/net6.0/ReverseInteger.AssemblyInfoInputs.cache b/ReverseInteger/obj/Debug/net6.0/ReverseInteger.AssemblyInfoInputs.cache new file mode 100644 index 0000000..4c35ead --- /dev/null +++ b/ReverseInteger/obj/Debug/net6.0/ReverseInteger.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +e919968e69b50e7af0e712c36bf3c3300c594573 diff --git a/ReverseInteger/obj/Debug/net6.0/ReverseInteger.GeneratedMSBuildEditorConfig.editorconfig b/ReverseInteger/obj/Debug/net6.0/ReverseInteger.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..83133b4 --- /dev/null +++ b/ReverseInteger/obj/Debug/net6.0/ReverseInteger.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,11 @@ +is_global = true +build_property.TargetFramework = net6.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = ReverseInteger +build_property.ProjectDir = C:\Users\divan\Source\Repos\first-contribution\ReverseInteger\ diff --git a/ReverseInteger/obj/Debug/net6.0/ReverseInteger.GlobalUsings.g.cs b/ReverseInteger/obj/Debug/net6.0/ReverseInteger.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/ReverseInteger/obj/Debug/net6.0/ReverseInteger.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/ReverseInteger/obj/Debug/net6.0/ReverseInteger.assets.cache b/ReverseInteger/obj/Debug/net6.0/ReverseInteger.assets.cache new file mode 100644 index 0000000..7db302a Binary files /dev/null and b/ReverseInteger/obj/Debug/net6.0/ReverseInteger.assets.cache differ diff --git a/ReverseInteger/obj/Debug/net6.0/ReverseInteger.csproj.AssemblyReference.cache b/ReverseInteger/obj/Debug/net6.0/ReverseInteger.csproj.AssemblyReference.cache new file mode 100644 index 0000000..c4b8eaf Binary files /dev/null and b/ReverseInteger/obj/Debug/net6.0/ReverseInteger.csproj.AssemblyReference.cache differ diff --git a/ReverseInteger/obj/ReverseInteger.csproj.nuget.dgspec.json b/ReverseInteger/obj/ReverseInteger.csproj.nuget.dgspec.json new file mode 100644 index 0000000..473fa7e --- /dev/null +++ b/ReverseInteger/obj/ReverseInteger.csproj.nuget.dgspec.json @@ -0,0 +1,68 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\divan\\Source\\Repos\\first-contribution\\ReverseInteger\\ReverseInteger.csproj": {} + }, + "projects": { + "C:\\Users\\divan\\Source\\Repos\\first-contribution\\ReverseInteger\\ReverseInteger.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\divan\\Source\\Repos\\first-contribution\\ReverseInteger\\ReverseInteger.csproj", + "projectName": "ReverseInteger", + "projectPath": "C:\\Users\\divan\\Source\\Repos\\first-contribution\\ReverseInteger\\ReverseInteger.csproj", + "packagesPath": "C:\\Users\\divan\\.nuget\\packages\\", + "outputPath": "C:\\Users\\divan\\Source\\Repos\\first-contribution\\ReverseInteger\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\divan\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net6.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.102\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/ReverseInteger/obj/ReverseInteger.csproj.nuget.g.props b/ReverseInteger/obj/ReverseInteger.csproj.nuget.g.props new file mode 100644 index 0000000..74452a8 --- /dev/null +++ b/ReverseInteger/obj/ReverseInteger.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\divan\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 6.4.0 + + + + + + \ No newline at end of file diff --git a/ReverseInteger/obj/ReverseInteger.csproj.nuget.g.targets b/ReverseInteger/obj/ReverseInteger.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/ReverseInteger/obj/ReverseInteger.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/ReverseInteger/obj/project.assets.json b/ReverseInteger/obj/project.assets.json new file mode 100644 index 0000000..d65e784 --- /dev/null +++ b/ReverseInteger/obj/project.assets.json @@ -0,0 +1,74 @@ +{ + "version": 3, + "targets": { + "net6.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net6.0": [] + }, + "packageFolders": { + "C:\\Users\\divan\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\divan\\Source\\Repos\\first-contribution\\ReverseInteger\\ReverseInteger.csproj", + "projectName": "ReverseInteger", + "projectPath": "C:\\Users\\divan\\Source\\Repos\\first-contribution\\ReverseInteger\\ReverseInteger.csproj", + "packagesPath": "C:\\Users\\divan\\.nuget\\packages\\", + "outputPath": "C:\\Users\\divan\\Source\\Repos\\first-contribution\\ReverseInteger\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\divan\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net6.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.102\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/ReverseInteger/obj/project.nuget.cache b/ReverseInteger/obj/project.nuget.cache new file mode 100644 index 0000000..0e1b002 --- /dev/null +++ b/ReverseInteger/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "8VTTX0fS6RQQCy5Jk4+AetfnQ//mp9bOYdZJzYBiDbc5uUxi72F36r2A49VQOmNVY6FbzB/W+k1A2eH8BLvgSA==", + "success": true, + "projectFilePath": "C:\\Users\\divan\\Source\\Repos\\first-contribution\\ReverseInteger\\ReverseInteger.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file