diff --git a/Program.cs b/Program.cs index 9647d64..97146b2 100644 --- a/Program.cs +++ b/Program.cs @@ -4,6 +4,20 @@ class Program { static void Main(string[] args) { - Console.WriteLine("Hello, World!"); + //dichiarazione variabili + ulong num, i; + //input e input sanitization + do{ + Console.Write("Inserire un numero: "); + num=Convert.ToUInt64(Console.ReadLine()); + if(num<=0){ + Console.WriteLine("Il numero non può essere né negativo né zero"); + } + } + while(num<=0); + //stampa dei numeri + for(i=num;i>0;i--){ + Console.WriteLine(i); + } } } diff --git a/bin/Debug/net8.0/decrescente b/bin/Debug/net8.0/decrescente new file mode 100755 index 0000000..b50c83d Binary files /dev/null and b/bin/Debug/net8.0/decrescente differ diff --git a/bin/Debug/net8.0/decrescente.deps.json b/bin/Debug/net8.0/decrescente.deps.json new file mode 100644 index 0000000..7f76f88 --- /dev/null +++ b/bin/Debug/net8.0/decrescente.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "decrescente/1.0.0": { + "runtime": { + "decrescente.dll": {} + } + } + } + }, + "libraries": { + "decrescente/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/bin/Debug/net8.0/decrescente.dll b/bin/Debug/net8.0/decrescente.dll new file mode 100644 index 0000000..3e3be29 Binary files /dev/null and b/bin/Debug/net8.0/decrescente.dll differ diff --git a/bin/Debug/net8.0/decrescente.pdb b/bin/Debug/net8.0/decrescente.pdb new file mode 100644 index 0000000..ce19619 Binary files /dev/null and b/bin/Debug/net8.0/decrescente.pdb differ diff --git a/bin/Debug/net8.0/decrescente.runtimeconfig.json b/bin/Debug/net8.0/decrescente.runtimeconfig.json new file mode 100644 index 0000000..becfaea --- /dev/null +++ b/bin/Debug/net8.0/decrescente.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..b50c83d Binary files /dev/null and b/obj/Debug/net8.0/apphost differ diff --git a/obj/Debug/net8.0/decrescente.AssemblyInfo.cs b/obj/Debug/net8.0/decrescente.AssemblyInfo.cs new file mode 100644 index 0000000..243f811 --- /dev/null +++ b/obj/Debug/net8.0/decrescente.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("decrescente")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9ddf463f73eff4084cf744bd95b3e683007ad3c3")] +[assembly: System.Reflection.AssemblyProductAttribute("decrescente")] +[assembly: System.Reflection.AssemblyTitleAttribute("decrescente")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generato dalla classe WriteCodeFragment di MSBuild. + diff --git a/obj/Debug/net8.0/decrescente.AssemblyInfoInputs.cache b/obj/Debug/net8.0/decrescente.AssemblyInfoInputs.cache new file mode 100644 index 0000000..35ea597 --- /dev/null +++ b/obj/Debug/net8.0/decrescente.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +a73f1fa128095786274fe4ffa8879b412ee2ff17e520424eedb032cdcfb14ff6 diff --git a/obj/Debug/net8.0/decrescente.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net8.0/decrescente.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..231f0a8 --- /dev/null +++ b/obj/Debug/net8.0/decrescente.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 = decrescente +build_property.ProjectDir = /home/BrainTheBest5/git/decrescente/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/obj/Debug/net8.0/decrescente.GlobalUsings.g.cs b/obj/Debug/net8.0/decrescente.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/obj/Debug/net8.0/decrescente.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/decrescente.assets.cache b/obj/Debug/net8.0/decrescente.assets.cache new file mode 100644 index 0000000..6f1d698 Binary files /dev/null and b/obj/Debug/net8.0/decrescente.assets.cache differ diff --git a/obj/Debug/net8.0/decrescente.csproj.CoreCompileInputs.cache b/obj/Debug/net8.0/decrescente.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..b2c2e6a --- /dev/null +++ b/obj/Debug/net8.0/decrescente.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +78d7a49e5bf0d90d1090a49c7f475234fcc69435d4d31063318b3a3b9ea47453 diff --git a/obj/Debug/net8.0/decrescente.csproj.FileListAbsolute.txt b/obj/Debug/net8.0/decrescente.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..3f41950 --- /dev/null +++ b/obj/Debug/net8.0/decrescente.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +/home/BrainTheBest5/git/decrescente/obj/Debug/net8.0/decrescente.GeneratedMSBuildEditorConfig.editorconfig +/home/BrainTheBest5/git/decrescente/obj/Debug/net8.0/decrescente.AssemblyInfoInputs.cache +/home/BrainTheBest5/git/decrescente/obj/Debug/net8.0/decrescente.AssemblyInfo.cs +/home/BrainTheBest5/git/decrescente/obj/Debug/net8.0/decrescente.csproj.CoreCompileInputs.cache +/home/BrainTheBest5/git/decrescente/bin/Debug/net8.0/decrescente +/home/BrainTheBest5/git/decrescente/bin/Debug/net8.0/decrescente.deps.json +/home/BrainTheBest5/git/decrescente/bin/Debug/net8.0/decrescente.runtimeconfig.json +/home/BrainTheBest5/git/decrescente/bin/Debug/net8.0/decrescente.dll +/home/BrainTheBest5/git/decrescente/bin/Debug/net8.0/decrescente.pdb +/home/BrainTheBest5/git/decrescente/obj/Debug/net8.0/decrescente.dll +/home/BrainTheBest5/git/decrescente/obj/Debug/net8.0/refint/decrescente.dll +/home/BrainTheBest5/git/decrescente/obj/Debug/net8.0/decrescente.pdb +/home/BrainTheBest5/git/decrescente/obj/Debug/net8.0/decrescente.genruntimeconfig.cache +/home/BrainTheBest5/git/decrescente/obj/Debug/net8.0/ref/decrescente.dll diff --git a/obj/Debug/net8.0/decrescente.dll b/obj/Debug/net8.0/decrescente.dll new file mode 100644 index 0000000..3e3be29 Binary files /dev/null and b/obj/Debug/net8.0/decrescente.dll differ diff --git a/obj/Debug/net8.0/decrescente.genruntimeconfig.cache b/obj/Debug/net8.0/decrescente.genruntimeconfig.cache new file mode 100644 index 0000000..97724d1 --- /dev/null +++ b/obj/Debug/net8.0/decrescente.genruntimeconfig.cache @@ -0,0 +1 @@ +35e512810b6ff05a58930e0d83453c8615f925dc42a70d9172cb3a4d2683fae2 diff --git a/obj/Debug/net8.0/decrescente.pdb b/obj/Debug/net8.0/decrescente.pdb new file mode 100644 index 0000000..ce19619 Binary files /dev/null and b/obj/Debug/net8.0/decrescente.pdb differ diff --git a/obj/Debug/net8.0/ref/decrescente.dll b/obj/Debug/net8.0/ref/decrescente.dll new file mode 100644 index 0000000..4c0eae1 Binary files /dev/null and b/obj/Debug/net8.0/ref/decrescente.dll differ diff --git a/obj/Debug/net8.0/refint/decrescente.dll b/obj/Debug/net8.0/refint/decrescente.dll new file mode 100644 index 0000000..4c0eae1 Binary files /dev/null and b/obj/Debug/net8.0/refint/decrescente.dll differ