Prima versione (riga 14 non viene eseguita)
This commit is contained in:
parent
40a271ce32
commit
449d2f9510
12
Program.cs
12
Program.cs
@ -4,6 +4,16 @@ class Program
|
|||||||
{
|
{
|
||||||
static void Main(string[] args)
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
bin/Debug/net8.0/sum_until_zero
Executable file
BIN
bin/Debug/net8.0/sum_until_zero
Executable file
Binary file not shown.
23
bin/Debug/net8.0/sum_until_zero.deps.json
Normal file
23
bin/Debug/net8.0/sum_until_zero.deps.json
Normal file
@ -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": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
bin/Debug/net8.0/sum_until_zero.dll
Normal file
BIN
bin/Debug/net8.0/sum_until_zero.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net8.0/sum_until_zero.pdb
Normal file
BIN
bin/Debug/net8.0/sum_until_zero.pdb
Normal file
Binary file not shown.
12
bin/Debug/net8.0/sum_until_zero.runtimeconfig.json
Normal file
12
bin/Debug/net8.0/sum_until_zero.runtimeconfig.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"tfm": "net8.0",
|
||||||
|
"framework": {
|
||||||
|
"name": "Microsoft.NETCore.App",
|
||||||
|
"version": "8.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=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
||||||
BIN
obj/Debug/net8.0/apphost
Executable file
BIN
obj/Debug/net8.0/apphost
Executable file
Binary file not shown.
BIN
obj/Debug/net8.0/ref/sum_until_zero.dll
Normal file
BIN
obj/Debug/net8.0/ref/sum_until_zero.dll
Normal file
Binary file not shown.
BIN
obj/Debug/net8.0/refint/sum_until_zero.dll
Normal file
BIN
obj/Debug/net8.0/refint/sum_until_zero.dll
Normal file
Binary file not shown.
22
obj/Debug/net8.0/sum_until_zero.AssemblyInfo.cs
Normal file
22
obj/Debug/net8.0/sum_until_zero.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("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.
|
||||||
|
|
||||||
1
obj/Debug/net8.0/sum_until_zero.AssemblyInfoInputs.cache
Normal file
1
obj/Debug/net8.0/sum_until_zero.AssemblyInfoInputs.cache
Normal file
@ -0,0 +1 @@
|
|||||||
|
e5597b6c21ac407792aff76e127963df72106e8525e21665ab26cbd1ac5d1cd3
|
||||||
@ -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 =
|
||||||
8
obj/Debug/net8.0/sum_until_zero.GlobalUsings.g.cs
Normal file
8
obj/Debug/net8.0/sum_until_zero.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/net8.0/sum_until_zero.assets.cache
Normal file
BIN
obj/Debug/net8.0/sum_until_zero.assets.cache
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
bbf4b363bb82ba73d585e473a32dc88d72b73f5c20fee8839feeed55980bb91a
|
||||||
14
obj/Debug/net8.0/sum_until_zero.csproj.FileListAbsolute.txt
Normal file
14
obj/Debug/net8.0/sum_until_zero.csproj.FileListAbsolute.txt
Normal file
@ -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
|
||||||
BIN
obj/Debug/net8.0/sum_until_zero.dll
Normal file
BIN
obj/Debug/net8.0/sum_until_zero.dll
Normal file
Binary file not shown.
1
obj/Debug/net8.0/sum_until_zero.genruntimeconfig.cache
Normal file
1
obj/Debug/net8.0/sum_until_zero.genruntimeconfig.cache
Normal file
@ -0,0 +1 @@
|
|||||||
|
03f691184b3236b6140e8666561b0933ea4f12d4614485df8b6933195082f12d
|
||||||
BIN
obj/Debug/net8.0/sum_until_zero.pdb
Normal file
BIN
obj/Debug/net8.0/sum_until_zero.pdb
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user