diff --git a/Program.cs b/Program.cs index bf86d9d..6fa3840 100644 --- a/Program.cs +++ b/Program.cs @@ -4,6 +4,16 @@ class Program { static void Main(string[] args) { - Console.WriteLine("Hello, World!"); + int num, somma, numPrec; + numPrec=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; + } + while(num!=0); + Console.WriteLine("La somma totale è: " + somma); } } diff --git a/bin/Debug/net8.0/sum_until_zero b/bin/Debug/net8.0/sum_until_zero new file mode 100755 index 0000000..e57b27f Binary files /dev/null and b/bin/Debug/net8.0/sum_until_zero differ diff --git a/bin/Debug/net8.0/sum_until_zero.deps.json b/bin/Debug/net8.0/sum_until_zero.deps.json new file mode 100644 index 0000000..b5ea3bb --- /dev/null +++ b/bin/Debug/net8.0/sum_until_zero.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "sum_until_zero/1.0.0": { + "runtime": { + "sum_until_zero.dll": {} + } + } + } + }, + "libraries": { + "sum_until_zero/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/bin/Debug/net8.0/sum_until_zero.dll b/bin/Debug/net8.0/sum_until_zero.dll new file mode 100644 index 0000000..49538e3 Binary files /dev/null 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 new file mode 100644 index 0000000..14c7dbf Binary files /dev/null and b/bin/Debug/net8.0/sum_until_zero.pdb differ diff --git a/bin/Debug/net8.0/sum_until_zero.runtimeconfig.json b/bin/Debug/net8.0/sum_until_zero.runtimeconfig.json new file mode 100644 index 0000000..becfaea --- /dev/null +++ b/bin/Debug/net8.0/sum_until_zero.runtimeconfig.json @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..dca70aa --- /dev/null +++ b/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/obj/Debug/net8.0/apphost b/obj/Debug/net8.0/apphost new file mode 100755 index 0000000..e57b27f Binary files /dev/null and b/obj/Debug/net8.0/apphost differ diff --git a/obj/Debug/net8.0/ref/sum_until_zero.dll b/obj/Debug/net8.0/ref/sum_until_zero.dll new file mode 100644 index 0000000..3a37682 Binary files /dev/null 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 new file mode 100644 index 0000000..3a37682 Binary files /dev/null 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 new file mode 100644 index 0000000..30741dd --- /dev/null +++ b/obj/Debug/net8.0/sum_until_zero.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// 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("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.AssemblyProductAttribute("sum_until_zero")] +[assembly: System.Reflection.AssemblyTitleAttribute("sum_until_zero")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generato dalla classe WriteCodeFragment di MSBuild. + diff --git a/obj/Debug/net8.0/sum_until_zero.AssemblyInfoInputs.cache b/obj/Debug/net8.0/sum_until_zero.AssemblyInfoInputs.cache new file mode 100644 index 0000000..7bdc95f --- /dev/null +++ b/obj/Debug/net8.0/sum_until_zero.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +e5597b6c21ac407792aff76e127963df72106e8525e21665ab26cbd1ac5d1cd3 diff --git a/obj/Debug/net8.0/sum_until_zero.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net8.0/sum_until_zero.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..3010253 --- /dev/null +++ b/obj/Debug/net8.0/sum_until_zero.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,13 @@ +is_global = true +build_property.TargetFramework = net8.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 = sum_until_zero +build_property.ProjectDir = /home/BrainTheBest5/git/sum_until_zero/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/obj/Debug/net8.0/sum_until_zero.GlobalUsings.g.cs b/obj/Debug/net8.0/sum_until_zero.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/obj/Debug/net8.0/sum_until_zero.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/obj/Debug/net8.0/sum_until_zero.assets.cache b/obj/Debug/net8.0/sum_until_zero.assets.cache new file mode 100644 index 0000000..900106d Binary files /dev/null and b/obj/Debug/net8.0/sum_until_zero.assets.cache differ diff --git a/obj/Debug/net8.0/sum_until_zero.csproj.CoreCompileInputs.cache b/obj/Debug/net8.0/sum_until_zero.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ca6d592 --- /dev/null +++ b/obj/Debug/net8.0/sum_until_zero.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +bbf4b363bb82ba73d585e473a32dc88d72b73f5c20fee8839feeed55980bb91a diff --git a/obj/Debug/net8.0/sum_until_zero.csproj.FileListAbsolute.txt b/obj/Debug/net8.0/sum_until_zero.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..52a1b36 --- /dev/null +++ b/obj/Debug/net8.0/sum_until_zero.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +/home/BrainTheBest5/git/sum_until_zero/bin/Debug/net8.0/sum_until_zero +/home/BrainTheBest5/git/sum_until_zero/bin/Debug/net8.0/sum_until_zero.deps.json +/home/BrainTheBest5/git/sum_until_zero/bin/Debug/net8.0/sum_until_zero.runtimeconfig.json +/home/BrainTheBest5/git/sum_until_zero/bin/Debug/net8.0/sum_until_zero.dll +/home/BrainTheBest5/git/sum_until_zero/bin/Debug/net8.0/sum_until_zero.pdb +/home/BrainTheBest5/git/sum_until_zero/obj/Debug/net8.0/sum_until_zero.GeneratedMSBuildEditorConfig.editorconfig +/home/BrainTheBest5/git/sum_until_zero/obj/Debug/net8.0/sum_until_zero.AssemblyInfoInputs.cache +/home/BrainTheBest5/git/sum_until_zero/obj/Debug/net8.0/sum_until_zero.AssemblyInfo.cs +/home/BrainTheBest5/git/sum_until_zero/obj/Debug/net8.0/sum_until_zero.csproj.CoreCompileInputs.cache +/home/BrainTheBest5/git/sum_until_zero/obj/Debug/net8.0/sum_until_zero.dll +/home/BrainTheBest5/git/sum_until_zero/obj/Debug/net8.0/refint/sum_until_zero.dll +/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 diff --git a/obj/Debug/net8.0/sum_until_zero.dll b/obj/Debug/net8.0/sum_until_zero.dll new file mode 100644 index 0000000..49538e3 Binary files /dev/null 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 new file mode 100644 index 0000000..ae6aa05 --- /dev/null +++ b/obj/Debug/net8.0/sum_until_zero.genruntimeconfig.cache @@ -0,0 +1 @@ +03f691184b3236b6140e8666561b0933ea4f12d4614485df8b6933195082f12d diff --git a/obj/Debug/net8.0/sum_until_zero.pdb b/obj/Debug/net8.0/sum_until_zero.pdb new file mode 100644 index 0000000..14c7dbf Binary files /dev/null and b/obj/Debug/net8.0/sum_until_zero.pdb differ