Initial commit

This commit is contained in:
La Programmatrice Verde 2024-10-23 11:27:46 +02:00
commit 2aebdf8da3
26 changed files with 328 additions and 0 deletions

43
Program.cs Normal file
View File

@ -0,0 +1,43 @@
// See https://aka.ms/new-console-template for more information
//dichiarazione e inizializzazione variabili
int numero1, numero2, i;
do{
//Input validation
do{
Console.Write("Inserire il primo numero: ");
numero1=Convert.ToInt32(Console.ReadLine());
if (numero1<=0){
Console.WriteLine("Il numero non può essere né negativo né zero.");
}
}
while(numero1<=0);
do{
Console.Write("Inserire il secondo numero: ");
numero2=Convert.ToInt32(Console.ReadLine());
if (numero2<=0){
Console.WriteLine("Il numero non può essere né negativo né zero.");
}
}
while(numero2<=0);
//controllo condizioni
if(numero2==numero1){
Console.WriteLine("I due numeri non possono essere uguali");
}
else if(numero2<numero1){
Console.WriteLine("Il secondo numero non può essere inferiore del primo");
}
else if(numero2==numero1+1){
Console.WriteLine("I due numeri non possono essere consecutivi.");
}
}
while(numero2<=numero1 || numero2==numero1+1);
//Stampo i numeri compresi tra quelli inseriti
i=numero2-1;
Console.Write("I numeri compresi tra " + numero1);
Console.Write(" e " + numero2);
Console.Write(" sono:");
while(i>numero1){
Console.Write(" "+i);
i--;
}
Console.WriteLine("");

10
VerificaRemake_3.csproj Normal file
View File

@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

BIN
bin/Debug/net8.0/VerificaRemake_3 Executable file

Binary file not shown.

View File

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

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,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("VerificaRemake_3")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("VerificaRemake_3")]
[assembly: System.Reflection.AssemblyTitleAttribute("VerificaRemake_3")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -0,0 +1 @@
02bf70b27d0f9784c67edb1334dd12876ee693f66df066e3d195cff17dba6f10

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 = VerificaRemake_3
build_property.ProjectDir = /home/BrainTheBest5/Scrivania/VerificaRemake_3/
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;

Binary file not shown.

View File

@ -0,0 +1 @@
3f45f91a880f4e9b07f89579ba6dc6188a00326426d4472e67e46e804e7bed29

View File

@ -0,0 +1,14 @@
/home/BrainTheBest5/Scrivania/VerificaRemake_3/bin/Debug/net8.0/VerificaRemake_3
/home/BrainTheBest5/Scrivania/VerificaRemake_3/bin/Debug/net8.0/VerificaRemake_3.deps.json
/home/BrainTheBest5/Scrivania/VerificaRemake_3/bin/Debug/net8.0/VerificaRemake_3.runtimeconfig.json
/home/BrainTheBest5/Scrivania/VerificaRemake_3/bin/Debug/net8.0/VerificaRemake_3.dll
/home/BrainTheBest5/Scrivania/VerificaRemake_3/bin/Debug/net8.0/VerificaRemake_3.pdb
/home/BrainTheBest5/Scrivania/VerificaRemake_3/obj/Debug/net8.0/VerificaRemake_3.GeneratedMSBuildEditorConfig.editorconfig
/home/BrainTheBest5/Scrivania/VerificaRemake_3/obj/Debug/net8.0/VerificaRemake_3.AssemblyInfoInputs.cache
/home/BrainTheBest5/Scrivania/VerificaRemake_3/obj/Debug/net8.0/VerificaRemake_3.AssemblyInfo.cs
/home/BrainTheBest5/Scrivania/VerificaRemake_3/obj/Debug/net8.0/VerificaRemake_3.csproj.CoreCompileInputs.cache
/home/BrainTheBest5/Scrivania/VerificaRemake_3/obj/Debug/net8.0/VerificaRemake_3.dll
/home/BrainTheBest5/Scrivania/VerificaRemake_3/obj/Debug/net8.0/refint/VerificaRemake_3.dll
/home/BrainTheBest5/Scrivania/VerificaRemake_3/obj/Debug/net8.0/VerificaRemake_3.pdb
/home/BrainTheBest5/Scrivania/VerificaRemake_3/obj/Debug/net8.0/VerificaRemake_3.genruntimeconfig.cache
/home/BrainTheBest5/Scrivania/VerificaRemake_3/obj/Debug/net8.0/ref/VerificaRemake_3.dll

Binary file not shown.

View File

@ -0,0 +1 @@
81b484b4beb2630b12a994036cd4c80590fd526fd42a26c626d572594f7587dd

Binary file not shown.

BIN
obj/Debug/net8.0/apphost Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,72 @@
{
"format": 1,
"restore": {
"/home/BrainTheBest5/Scrivania/VerificaRemake_3/VerificaRemake_3.csproj": {}
},
"projects": {
"/home/BrainTheBest5/Scrivania/VerificaRemake_3/VerificaRemake_3.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/BrainTheBest5/Scrivania/VerificaRemake_3/VerificaRemake_3.csproj",
"projectName": "VerificaRemake_3",
"projectPath": "/home/BrainTheBest5/Scrivania/VerificaRemake_3/VerificaRemake_3.csproj",
"packagesPath": "/home/BrainTheBest5/.nuget/packages/",
"outputPath": "/home/BrainTheBest5/Scrivania/VerificaRemake_3/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"
}
}
}
}
}

View File

@ -0,0 +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>
</Project>

View File

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

77
obj/project.assets.json Normal file
View File

@ -0,0 +1,77 @@
{
"version": 3,
"targets": {
"net8.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net8.0": []
},
"packageFolders": {
"/home/BrainTheBest5/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/BrainTheBest5/Scrivania/VerificaRemake_3/VerificaRemake_3.csproj",
"projectName": "VerificaRemake_3",
"projectPath": "/home/BrainTheBest5/Scrivania/VerificaRemake_3/VerificaRemake_3.csproj",
"packagesPath": "/home/BrainTheBest5/.nuget/packages/",
"outputPath": "/home/BrainTheBest5/Scrivania/VerificaRemake_3/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"
}
}
}
}

10
obj/project.nuget.cache Normal file
View File

@ -0,0 +1,10 @@
{
"version": 2,
"dgSpecHash": "qadYVRFWFx8=",
"success": true,
"projectFilePath": "/home/BrainTheBest5/Scrivania/VerificaRemake_3/VerificaRemake_3.csproj",
"expectedPackageFiles": [
"/home/BrainTheBest5/.nuget/packages/microsoft.aspnetcore.app.ref/8.0.10/microsoft.aspnetcore.app.ref.8.0.10.nupkg.sha512"
],
"logs": []
}