diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..85ec415 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "files.autoSaveDelay": 1, + "files.autoSave": "afterDelay" +} \ No newline at end of file diff --git a/Program.cs b/Program.cs index 6fa3840..99d75d1 100644 --- a/Program.cs +++ b/Program.cs @@ -4,14 +4,13 @@ class Program { static void Main(string[] args) { - int num, somma, numPrec; - numPrec=0; + double num, somma; + somma=0; Console.WriteLine("Il programma sommerà i numeri finché non verrà inserito zero, poi restituirà il risultato."); do{ Console.Write("Inserire un numero: "); - num=Convert.ToInt32(Console.ReadLine()); - somma=num+numPrec; - numPrec=num; + num=Convert.ToDouble(Console.ReadLine()); + somma=num+somma; } while(num!=0); Console.WriteLine("La somma totale è: " + somma); diff --git a/bin/Debug/net8.0/sum_until_zero.dll b/bin/Debug/net8.0/sum_until_zero.dll index 49538e3..4772560 100644 Binary files a/bin/Debug/net8.0/sum_until_zero.dll and b/bin/Debug/net8.0/sum_until_zero.dll differ diff --git a/bin/Debug/net8.0/sum_until_zero.pdb b/bin/Debug/net8.0/sum_until_zero.pdb index 14c7dbf..85e5bb8 100644 Binary files a/bin/Debug/net8.0/sum_until_zero.pdb and b/bin/Debug/net8.0/sum_until_zero.pdb differ diff --git a/obj/Debug/net8.0/ref/sum_until_zero.dll b/obj/Debug/net8.0/ref/sum_until_zero.dll index 3a37682..c2a17a5 100644 Binary files a/obj/Debug/net8.0/ref/sum_until_zero.dll and b/obj/Debug/net8.0/ref/sum_until_zero.dll differ diff --git a/obj/Debug/net8.0/refint/sum_until_zero.dll b/obj/Debug/net8.0/refint/sum_until_zero.dll index 3a37682..c2a17a5 100644 Binary files a/obj/Debug/net8.0/refint/sum_until_zero.dll and b/obj/Debug/net8.0/refint/sum_until_zero.dll differ diff --git a/obj/Debug/net8.0/sum_until_zero.AssemblyInfo.cs b/obj/Debug/net8.0/sum_until_zero.AssemblyInfo.cs index 30741dd..f540d19 100644 --- a/obj/Debug/net8.0/sum_until_zero.AssemblyInfo.cs +++ b/obj/Debug/net8.0/sum_until_zero.AssemblyInfo.cs @@ -13,7 +13,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("sum_until_zero")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+40a271ce3259361aa3d72b2e19fa828816efbf4d")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+449d2f95104c875ce405d864c6655cd4c26b3329")] [assembly: System.Reflection.AssemblyProductAttribute("sum_until_zero")] [assembly: System.Reflection.AssemblyTitleAttribute("sum_until_zero")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/obj/Debug/net8.0/sum_until_zero.AssemblyInfoInputs.cache b/obj/Debug/net8.0/sum_until_zero.AssemblyInfoInputs.cache index 7bdc95f..4385e09 100644 --- a/obj/Debug/net8.0/sum_until_zero.AssemblyInfoInputs.cache +++ b/obj/Debug/net8.0/sum_until_zero.AssemblyInfoInputs.cache @@ -1 +1 @@ -e5597b6c21ac407792aff76e127963df72106e8525e21665ab26cbd1ac5d1cd3 +7c9836cd697e8fdfe702c15d3f02187e400574d7269d02a2039a3b42fa5f5f74 diff --git a/obj/Debug/net8.0/sum_until_zero.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net8.0/sum_until_zero.GeneratedMSBuildEditorConfig.editorconfig index 3010253..5ac52da 100644 --- a/obj/Debug/net8.0/sum_until_zero.GeneratedMSBuildEditorConfig.editorconfig +++ b/obj/Debug/net8.0/sum_until_zero.GeneratedMSBuildEditorConfig.editorconfig @@ -8,6 +8,6 @@ build_property.PlatformNeutralAssembly = build_property.EnforceExtendedAnalyzerRules = build_property._SupportedPlatformList = Linux,macOS,Windows build_property.RootNamespace = sum_until_zero -build_property.ProjectDir = /home/BrainTheBest5/git/sum_until_zero/ +build_property.ProjectDir = /mnt/Dati/Github Personal Repos/sum_until_zero/ build_property.EnableComHosting = build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/obj/Debug/net8.0/sum_until_zero.assets.cache b/obj/Debug/net8.0/sum_until_zero.assets.cache index 900106d..83a4732 100644 Binary files a/obj/Debug/net8.0/sum_until_zero.assets.cache and b/obj/Debug/net8.0/sum_until_zero.assets.cache differ diff --git a/obj/Debug/net8.0/sum_until_zero.csproj.FileListAbsolute.txt b/obj/Debug/net8.0/sum_until_zero.csproj.FileListAbsolute.txt index 52a1b36..cb73c79 100644 --- a/obj/Debug/net8.0/sum_until_zero.csproj.FileListAbsolute.txt +++ b/obj/Debug/net8.0/sum_until_zero.csproj.FileListAbsolute.txt @@ -12,3 +12,17 @@ /home/BrainTheBest5/git/sum_until_zero/obj/Debug/net8.0/sum_until_zero.pdb /home/BrainTheBest5/git/sum_until_zero/obj/Debug/net8.0/sum_until_zero.genruntimeconfig.cache /home/BrainTheBest5/git/sum_until_zero/obj/Debug/net8.0/ref/sum_until_zero.dll +/mnt/Dati/Github Personal Repos/sum_until_zero/obj/Debug/net8.0/sum_until_zero.GeneratedMSBuildEditorConfig.editorconfig +/mnt/Dati/Github Personal Repos/sum_until_zero/obj/Debug/net8.0/sum_until_zero.AssemblyInfoInputs.cache +/mnt/Dati/Github Personal Repos/sum_until_zero/obj/Debug/net8.0/sum_until_zero.AssemblyInfo.cs +/mnt/Dati/Github Personal Repos/sum_until_zero/obj/Debug/net8.0/sum_until_zero.csproj.CoreCompileInputs.cache +/mnt/Dati/Github Personal Repos/sum_until_zero/obj/Debug/net8.0/sum_until_zero.dll +/mnt/Dati/Github Personal Repos/sum_until_zero/obj/Debug/net8.0/refint/sum_until_zero.dll +/mnt/Dati/Github Personal Repos/sum_until_zero/obj/Debug/net8.0/sum_until_zero.pdb +/mnt/Dati/Github Personal Repos/sum_until_zero/bin/Debug/net8.0/sum_until_zero +/mnt/Dati/Github Personal Repos/sum_until_zero/bin/Debug/net8.0/sum_until_zero.deps.json +/mnt/Dati/Github Personal Repos/sum_until_zero/bin/Debug/net8.0/sum_until_zero.runtimeconfig.json +/mnt/Dati/Github Personal Repos/sum_until_zero/bin/Debug/net8.0/sum_until_zero.dll +/mnt/Dati/Github Personal Repos/sum_until_zero/bin/Debug/net8.0/sum_until_zero.pdb +/mnt/Dati/Github Personal Repos/sum_until_zero/obj/Debug/net8.0/sum_until_zero.genruntimeconfig.cache +/mnt/Dati/Github Personal Repos/sum_until_zero/obj/Debug/net8.0/ref/sum_until_zero.dll diff --git a/obj/Debug/net8.0/sum_until_zero.dll b/obj/Debug/net8.0/sum_until_zero.dll index 49538e3..4772560 100644 Binary files a/obj/Debug/net8.0/sum_until_zero.dll and b/obj/Debug/net8.0/sum_until_zero.dll differ diff --git a/obj/Debug/net8.0/sum_until_zero.genruntimeconfig.cache b/obj/Debug/net8.0/sum_until_zero.genruntimeconfig.cache index ae6aa05..840a99f 100644 --- a/obj/Debug/net8.0/sum_until_zero.genruntimeconfig.cache +++ b/obj/Debug/net8.0/sum_until_zero.genruntimeconfig.cache @@ -1 +1 @@ -03f691184b3236b6140e8666561b0933ea4f12d4614485df8b6933195082f12d +91b5808dba5b7ebef7dbb98ec635742aaa84fcc02a4349ebdc9e61486064199b diff --git a/obj/Debug/net8.0/sum_until_zero.pdb b/obj/Debug/net8.0/sum_until_zero.pdb index 14c7dbf..85e5bb8 100644 Binary files a/obj/Debug/net8.0/sum_until_zero.pdb and b/obj/Debug/net8.0/sum_until_zero.pdb differ diff --git a/obj/project.assets.json b/obj/project.assets.json index 9347f11..0fab6cc 100644 --- a/obj/project.assets.json +++ b/obj/project.assets.json @@ -13,11 +13,11 @@ "project": { "version": "1.0.0", "restore": { - "projectUniqueName": "/home/BrainTheBest5/git/sum_until_zero/sum_until_zero.csproj", + "projectUniqueName": "/mnt/Dati/Github Personal Repos/sum_until_zero/sum_until_zero.csproj", "projectName": "sum_until_zero", - "projectPath": "/home/BrainTheBest5/git/sum_until_zero/sum_until_zero.csproj", + "projectPath": "/mnt/Dati/Github Personal Repos/sum_until_zero/sum_until_zero.csproj", "packagesPath": "/home/BrainTheBest5/.nuget/packages/", - "outputPath": "/home/BrainTheBest5/git/sum_until_zero/obj/", + "outputPath": "/mnt/Dati/Github Personal Repos/sum_until_zero/obj/", "projectStyle": "PackageReference", "configFilePaths": [ "/home/BrainTheBest5/.nuget/NuGet/NuGet.Config" diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache index f96658c..41709a2 100644 --- a/obj/project.nuget.cache +++ b/obj/project.nuget.cache @@ -1,8 +1,8 @@ { "version": 2, - "dgSpecHash": "JQDSAqNNx/E=", + "dgSpecHash": "K8EPKrIdZ7k=", "success": true, - "projectFilePath": "/home/BrainTheBest5/git/sum_until_zero/sum_until_zero.csproj", + "projectFilePath": "/mnt/Dati/Github Personal Repos/sum_until_zero/sum_until_zero.csproj", "expectedPackageFiles": [ "/home/BrainTheBest5/.nuget/packages/microsoft.aspnetcore.app.ref/8.0.10/microsoft.aspnetcore.app.ref.8.0.10.nupkg.sha512" ], diff --git a/obj/sum_until_zero.csproj.nuget.dgspec.json b/obj/sum_until_zero.csproj.nuget.dgspec.json index ddb5d13..4d9c0b1 100644 --- a/obj/sum_until_zero.csproj.nuget.dgspec.json +++ b/obj/sum_until_zero.csproj.nuget.dgspec.json @@ -1,17 +1,17 @@ { "format": 1, "restore": { - "/home/BrainTheBest5/git/sum_until_zero/sum_until_zero.csproj": {} + "/mnt/Dati/Github Personal Repos/sum_until_zero/sum_until_zero.csproj": {} }, "projects": { - "/home/BrainTheBest5/git/sum_until_zero/sum_until_zero.csproj": { + "/mnt/Dati/Github Personal Repos/sum_until_zero/sum_until_zero.csproj": { "version": "1.0.0", "restore": { - "projectUniqueName": "/home/BrainTheBest5/git/sum_until_zero/sum_until_zero.csproj", + "projectUniqueName": "/mnt/Dati/Github Personal Repos/sum_until_zero/sum_until_zero.csproj", "projectName": "sum_until_zero", - "projectPath": "/home/BrainTheBest5/git/sum_until_zero/sum_until_zero.csproj", + "projectPath": "/mnt/Dati/Github Personal Repos/sum_until_zero/sum_until_zero.csproj", "packagesPath": "/home/BrainTheBest5/.nuget/packages/", - "outputPath": "/home/BrainTheBest5/git/sum_until_zero/obj/", + "outputPath": "/mnt/Dati/Github Personal Repos/sum_until_zero/obj/", "projectStyle": "PackageReference", "configFilePaths": [ "/home/BrainTheBest5/.nuget/NuGet/NuGet.Config"