Completato
This commit is contained in:
parent
0887d515d0
commit
e895f420b9
18
Program.cs
18
Program.cs
@ -1,9 +1,17 @@
|
||||
namespace ricorsione_1;
|
||||
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello, World!");
|
||||
class Program {
|
||||
static void Main(string[] args) {
|
||||
int numero1, numero2;
|
||||
Console.Write("Inserire un numero: ");
|
||||
numero1 = Convert.ToInt32(Console.ReadLine());
|
||||
Console.Write("Inserire un altro numero: ");
|
||||
numero2 = Convert.ToInt32(Console.ReadLine());
|
||||
Console.WriteLine($"Risultato: {Ricorsione(numero1,numero2)}");
|
||||
}
|
||||
|
||||
static int Ricorsione(int p_numero1, int p_numero2) { //aggiungi uno a p_numero1 p_numero2 volte
|
||||
int ritorno = p_numero2 == 0 ? p_numero1 : 1 + Ricorsione(p_numero1, p_numero2 - 1);
|
||||
return ritorno;
|
||||
}
|
||||
}
|
||||
|
||||
BIN
bin/Debug/net9.0/ricorsione_1
Executable file
BIN
bin/Debug/net9.0/ricorsione_1
Executable file
Binary file not shown.
23
bin/Debug/net9.0/ricorsione_1.deps.json
Normal file
23
bin/Debug/net9.0/ricorsione_1.deps.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v9.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v9.0": {
|
||||
"ricorsione_1/1.0.0": {
|
||||
"runtime": {
|
||||
"ricorsione_1.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"ricorsione_1/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
bin/Debug/net9.0/ricorsione_1.dll
Normal file
BIN
bin/Debug/net9.0/ricorsione_1.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/ricorsione_1.pdb
Normal file
BIN
bin/Debug/net9.0/ricorsione_1.pdb
Normal file
Binary file not shown.
12
bin/Debug/net9.0/ricorsione_1.runtimeconfig.json
Normal file
12
bin/Debug/net9.0/ricorsione_1.runtimeconfig.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net9.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "9.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
|
||||
BIN
obj/Debug/net9.0/apphost
Executable file
BIN
obj/Debug/net9.0/apphost
Executable file
Binary file not shown.
BIN
obj/Debug/net9.0/ref/ricorsione_1.dll
Normal file
BIN
obj/Debug/net9.0/ref/ricorsione_1.dll
Normal file
Binary file not shown.
BIN
obj/Debug/net9.0/refint/ricorsione_1.dll
Normal file
BIN
obj/Debug/net9.0/refint/ricorsione_1.dll
Normal file
Binary file not shown.
22
obj/Debug/net9.0/ricorsione_1.AssemblyInfo.cs
Normal file
22
obj/Debug/net9.0/ricorsione_1.AssemblyInfo.cs
Normal file
@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("ricorsione_1")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0887d515d0d4dddafd6384635680f8f15b02fb7c")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("ricorsione_1")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("ricorsione_1")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
1
obj/Debug/net9.0/ricorsione_1.AssemblyInfoInputs.cache
Normal file
1
obj/Debug/net9.0/ricorsione_1.AssemblyInfoInputs.cache
Normal file
@ -0,0 +1 @@
|
||||
9e21f18604ac42a2d580948ca35d793a06b618ea63249e4a32a6d874c6da2012
|
||||
@ -0,0 +1,15 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net9.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 = ricorsione_1
|
||||
build_property.ProjectDir = /home/Verde/git/ricorsione_1/
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.EffectiveAnalysisLevelStyle = 9.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
8
obj/Debug/net9.0/ricorsione_1.GlobalUsings.g.cs
Normal file
8
obj/Debug/net9.0/ricorsione_1.GlobalUsings.g.cs
Normal file
@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
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;
|
||||
BIN
obj/Debug/net9.0/ricorsione_1.assets.cache
Normal file
BIN
obj/Debug/net9.0/ricorsione_1.assets.cache
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
f1ef01d1ae1d6bbc16fce70d045da0535829d1db4d5af65d2c4e792c1b05662e
|
||||
14
obj/Debug/net9.0/ricorsione_1.csproj.FileListAbsolute.txt
Normal file
14
obj/Debug/net9.0/ricorsione_1.csproj.FileListAbsolute.txt
Normal file
@ -0,0 +1,14 @@
|
||||
/home/Verde/git/ricorsione_1/bin/Debug/net9.0/ricorsione_1
|
||||
/home/Verde/git/ricorsione_1/bin/Debug/net9.0/ricorsione_1.deps.json
|
||||
/home/Verde/git/ricorsione_1/bin/Debug/net9.0/ricorsione_1.runtimeconfig.json
|
||||
/home/Verde/git/ricorsione_1/bin/Debug/net9.0/ricorsione_1.dll
|
||||
/home/Verde/git/ricorsione_1/bin/Debug/net9.0/ricorsione_1.pdb
|
||||
/home/Verde/git/ricorsione_1/obj/Debug/net9.0/ricorsione_1.GeneratedMSBuildEditorConfig.editorconfig
|
||||
/home/Verde/git/ricorsione_1/obj/Debug/net9.0/ricorsione_1.AssemblyInfoInputs.cache
|
||||
/home/Verde/git/ricorsione_1/obj/Debug/net9.0/ricorsione_1.AssemblyInfo.cs
|
||||
/home/Verde/git/ricorsione_1/obj/Debug/net9.0/ricorsione_1.csproj.CoreCompileInputs.cache
|
||||
/home/Verde/git/ricorsione_1/obj/Debug/net9.0/ricorsione_1.dll
|
||||
/home/Verde/git/ricorsione_1/obj/Debug/net9.0/refint/ricorsione_1.dll
|
||||
/home/Verde/git/ricorsione_1/obj/Debug/net9.0/ricorsione_1.pdb
|
||||
/home/Verde/git/ricorsione_1/obj/Debug/net9.0/ricorsione_1.genruntimeconfig.cache
|
||||
/home/Verde/git/ricorsione_1/obj/Debug/net9.0/ref/ricorsione_1.dll
|
||||
BIN
obj/Debug/net9.0/ricorsione_1.dll
Normal file
BIN
obj/Debug/net9.0/ricorsione_1.dll
Normal file
Binary file not shown.
1
obj/Debug/net9.0/ricorsione_1.genruntimeconfig.cache
Normal file
1
obj/Debug/net9.0/ricorsione_1.genruntimeconfig.cache
Normal file
@ -0,0 +1 @@
|
||||
2f29e04998b8d5832dff311026bb5b630d4e281a17af7ad3bb7b08a30cd796dc
|
||||
BIN
obj/Debug/net9.0/ricorsione_1.pdb
Normal file
BIN
obj/Debug/net9.0/ricorsione_1.pdb
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user