Aggiunti file

This commit is contained in:
La Programmatrice Verde 2024-11-13 10:53:33 +01:00
parent 66bccd79fa
commit 74e605f0c4
37 changed files with 383 additions and 178 deletions

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,37 @@
{
"Version": 1,
"WorkspaceRootPath": "T:\\Verifica2_Bassanetti_while\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{88959C79-DB45-431D-90F4-25EA0DFBC5EB}|Verifica2_Bassanetti_while.csproj|t:\\verifica2_bassanetti_while\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{88959C79-DB45-431D-90F4-25EA0DFBC5EB}|Verifica2_Bassanetti_while.csproj|solutionrelative:program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Program.cs",
"DocumentMoniker": "T:\\Verifica2_Bassanetti_while\\Program.cs",
"RelativeDocumentMoniker": "Program.cs",
"ToolTip": "T:\\Verifica2_Bassanetti_while\\Program.cs",
"RelativeToolTip": "Program.cs",
"ViewState": "AgIAAA8AAAAAAAAAAAAAABgAAAAWAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-11-13T08:43:15.489Z",
"EditorCaption": ""
}
]
}
]
}
]
}

View File

@ -0,0 +1,37 @@
{
"Version": 1,
"WorkspaceRootPath": "T:\\Verifica2_Bassanetti_while\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{88959C79-DB45-431D-90F4-25EA0DFBC5EB}|Verifica2_Bassanetti_while.csproj|t:\\verifica2_bassanetti_while\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{88959C79-DB45-431D-90F4-25EA0DFBC5EB}|Verifica2_Bassanetti_while.csproj|solutionrelative:program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Program.cs",
"DocumentMoniker": "T:\\Verifica2_Bassanetti_while\\Program.cs",
"RelativeDocumentMoniker": "Program.cs",
"ToolTip": "T:\\Verifica2_Bassanetti_while\\Program.cs",
"RelativeToolTip": "Program.cs",
"ViewState": "AgIAABgAAAAAAAAAAAAAACQAAAAMAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-11-13T08:43:15.489Z",
"EditorCaption": ""
}
]
}
]
}
]
}

View File

@ -1,9 +1,40 @@
namespace Verifica2_Bassanetti_while;
// See https://aka.ms/new-console-template for more information
//dichiarazione e inizializzazione variabili
int input, fattoriale, i, j;
i = 1;
j = 1;
fattoriale = 1;
class Program
//input e input sanitization
do
{
static void Main(string[] args)
Console.Write("Inserisci un numero: ");
input = Convert.ToInt32(Console.ReadLine());
if (input <= 0)
{
Console.WriteLine("Hello, World!");
Console.WriteLine("Il numero inserito non può essere né zero né negativo");
}
}
while (input <= 0);
//inizio calcolo
while (i <= input)
{
if (i == 1)
{
fattoriale = 1;
}
else
{
fattoriale = i;
while(i-j > 1)
{
fattoriale = fattoriale * (i-j);
j++;
}
j = 0; //reset contatore
fattoriale = fattoriale / i; //fix per correggere un giro extra
}
//output
Console.WriteLine("Fattoriale di " + i + ": " + fattoriale);
i++;
}

View File

@ -1,15 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Verifica2_Bassanetti_while", "Verifica2_Bassanetti_while.csproj", {
VisualStudioVersion = 17.11.35222.181
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Verifica2_Bassanetti_while", "Verifica2_Bassanetti_while.csproj", "{88959C79-DB45-431D-90F4-25EA0DFBC5EB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{88959C79-DB45-431D-90F4-25EA0DFBC5EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{88959C79-DB45-431D-90F4-25EA0DFBC5EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{88959C79-DB45-431D-90F4-25EA0DFBC5EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{88959C79-DB45-431D-90F4-25EA0DFBC5EB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6AA9BD70-AD60-4065-AE72-766AD12DB689}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v8.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"Verifica2_Bassanetti_while/1.0.0": {
"runtime": {
"Verifica2_Bassanetti_while.dll": {}
}
}
}
},
"libraries": {
"Verifica2_Bassanetti_while/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net8.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]

View File

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Il codice è stato generato da uno strumento.
// Versione runtime:4.0.30319.42000
//
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
// il codice viene rigenerato.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Verifica2_Bassanetti_while")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Verifica2_Bassanetti_while")]
[assembly: System.Reflection.AssemblyTitleAttribute("Verifica2_Bassanetti_while")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generato dalla classe WriteCodeFragment di MSBuild.

View File

@ -0,0 +1 @@
ef49794fd50175eb895cd15ecda613576006675f5409399d1a164f90a432d4f8

View File

@ -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 = Verifica2_Bassanetti_while
build_property.ProjectDir = T:\Verifica2_Bassanetti_while\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =

View 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;

View File

@ -0,0 +1 @@
f61b34223c4ab81363f47e09876ad27456e51102c410a71136a4448930149f3b

View File

@ -0,0 +1,14 @@
T:\Verifica2_Bassanetti_while\bin\Debug\net8.0\Verifica2_Bassanetti_while.exe
T:\Verifica2_Bassanetti_while\bin\Debug\net8.0\Verifica2_Bassanetti_while.deps.json
T:\Verifica2_Bassanetti_while\bin\Debug\net8.0\Verifica2_Bassanetti_while.runtimeconfig.json
T:\Verifica2_Bassanetti_while\bin\Debug\net8.0\Verifica2_Bassanetti_while.dll
T:\Verifica2_Bassanetti_while\bin\Debug\net8.0\Verifica2_Bassanetti_while.pdb
T:\Verifica2_Bassanetti_while\obj\Debug\net8.0\Verifica2_Bassanetti_while.GeneratedMSBuildEditorConfig.editorconfig
T:\Verifica2_Bassanetti_while\obj\Debug\net8.0\Verifica2_Bassanetti_while.AssemblyInfoInputs.cache
T:\Verifica2_Bassanetti_while\obj\Debug\net8.0\Verifica2_Bassanetti_while.AssemblyInfo.cs
T:\Verifica2_Bassanetti_while\obj\Debug\net8.0\Verifica2_Bassanetti_while.csproj.CoreCompileInputs.cache
T:\Verifica2_Bassanetti_while\obj\Debug\net8.0\Verifica2_Bassanetti_while.dll
T:\Verifica2_Bassanetti_while\obj\Debug\net8.0\refint\Verifica2_Bassanetti_while.dll
T:\Verifica2_Bassanetti_while\obj\Debug\net8.0\Verifica2_Bassanetti_while.pdb
T:\Verifica2_Bassanetti_while\obj\Debug\net8.0\Verifica2_Bassanetti_while.genruntimeconfig.cache
T:\Verifica2_Bassanetti_while\obj\Debug\net8.0\ref\Verifica2_Bassanetti_while.dll

Binary file not shown.

View File

@ -0,0 +1 @@
fbb6df9d1a8d221e73eecd1244fee034c91aba3005880661c97975851973815a

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,72 +1,68 @@
{
"format": 1,
"restore": {
"/home/BrainTheBest5/git/Verifica2_Bassanetti_while/Verifica2_Bassanetti_while.csproj": {}
},
"projects": {
"/home/BrainTheBest5/git/Verifica2_Bassanetti_while/Verifica2_Bassanetti_while.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/BrainTheBest5/git/Verifica2_Bassanetti_while/Verifica2_Bassanetti_while.csproj",
"projectName": "Verifica2_Bassanetti_while",
"projectPath": "/home/BrainTheBest5/git/Verifica2_Bassanetti_while/Verifica2_Bassanetti_while.csproj",
"packagesPath": "/home/BrainTheBest5/.nuget/packages/",
"outputPath": "/home/BrainTheBest5/git/Verifica2_Bassanetti_while/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/BrainTheBest5/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[8.0.10, 8.0.10]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.403/PortableRuntimeIdentifierGraph.json"
}
}
}
}
{
"format": 1,
"restore": {
"T:\\Verifica2_Bassanetti_while\\Verifica2_Bassanetti_while.csproj": {}
},
"projects": {
"T:\\Verifica2_Bassanetti_while\\Verifica2_Bassanetti_while.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "T:\\Verifica2_Bassanetti_while\\Verifica2_Bassanetti_while.csproj",
"projectName": "Verifica2_Bassanetti_while",
"projectPath": "T:\\Verifica2_Bassanetti_while\\Verifica2_Bassanetti_while.csproj",
"packagesPath": "C:\\Users\\alunno\\.nuget\\packages\\",
"outputPath": "T:\\Verifica2_Bassanetti_while\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\alunno\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/BrainTheBest5/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/BrainTheBest5/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.1</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/BrainTheBest5/.nuget/packages/" />
</ItemGroup>
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\alunno\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\alunno\.nuget\packages\" />
</ItemGroup>
</Project>

View File

@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

View File

@ -1,77 +1,73 @@
{
"version": 3,
"targets": {
"net8.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net8.0": []
},
"packageFolders": {
"/home/BrainTheBest5/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/BrainTheBest5/git/Verifica2_Bassanetti_while/Verifica2_Bassanetti_while.csproj",
"projectName": "Verifica2_Bassanetti_while",
"projectPath": "/home/BrainTheBest5/git/Verifica2_Bassanetti_while/Verifica2_Bassanetti_while.csproj",
"packagesPath": "/home/BrainTheBest5/.nuget/packages/",
"outputPath": "/home/BrainTheBest5/git/Verifica2_Bassanetti_while/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/BrainTheBest5/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[8.0.10, 8.0.10]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.403/PortableRuntimeIdentifierGraph.json"
}
}
}
{
"version": 3,
"targets": {
"net8.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net8.0": []
},
"packageFolders": {
"C:\\Users\\alunno\\.nuget\\packages\\": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "T:\\Verifica2_Bassanetti_while\\Verifica2_Bassanetti_while.csproj",
"projectName": "Verifica2_Bassanetti_while",
"projectPath": "T:\\Verifica2_Bassanetti_while\\Verifica2_Bassanetti_while.csproj",
"packagesPath": "C:\\Users\\alunno\\.nuget\\packages\\",
"outputPath": "T:\\Verifica2_Bassanetti_while\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\alunno\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
}
}
}
}

View File

@ -1,10 +1,8 @@
{
"version": 2,
"dgSpecHash": "p+88MFGnBmo=",
"success": true,
"projectFilePath": "/home/BrainTheBest5/git/Verifica2_Bassanetti_while/Verifica2_Bassanetti_while.csproj",
"expectedPackageFiles": [
"/home/BrainTheBest5/.nuget/packages/microsoft.aspnetcore.app.ref/8.0.10/microsoft.aspnetcore.app.ref.8.0.10.nupkg.sha512"
],
"logs": []
{
"version": 2,
"dgSpecHash": "aTsL4A0V3Po=",
"success": true,
"projectFilePath": "T:\\Verifica2_Bassanetti_while\\Verifica2_Bassanetti_while.csproj",
"expectedPackageFiles": [],
"logs": []
}