Modificati i parametri delle funzioni per seguire le convenzioni dei prof
This commit is contained in:
parent
1759e6dafc
commit
a779beab30
18
Program.cs
18
Program.cs
@ -61,28 +61,28 @@ class Program
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static double Somma(double operatore1, double operatore2) {
|
static double Somma(double p_operatore1, double p_operatore2) {
|
||||||
double risultato;
|
double risultato;
|
||||||
risultato=operatore1+operatore2;
|
risultato=p_operatore1+p_operatore2;
|
||||||
return risultato;
|
return risultato;
|
||||||
}
|
}
|
||||||
static double Differenza(double operatore1, double operatore2) {
|
static double Differenza(double p_operatore1, double p_operatore2) {
|
||||||
double risultato;
|
double risultato;
|
||||||
risultato=operatore1-operatore2;
|
risultato=p_operatore1-p_operatore2;
|
||||||
return risultato;
|
return risultato;
|
||||||
}
|
}
|
||||||
static double Prodotto(double operatore1, double operatore2) {
|
static double Prodotto(double p_operatore1, double p_operatore2) {
|
||||||
double risultato;
|
double risultato;
|
||||||
risultato=operatore1*operatore2;
|
risultato=p_operatore1*p_operatore2;
|
||||||
return risultato;
|
return risultato;
|
||||||
}
|
}
|
||||||
static string Quoziente(double operatore1, double operatore2) {
|
static string Quoziente(double p_operatore1, double p_operatore2) {
|
||||||
string risultato;
|
string risultato;
|
||||||
if(operatore2==0){//gestione della divisione per zero
|
if(p_operatore2==0){//gestione della divisione per zero
|
||||||
return "error";
|
return "error";
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
risultato=Convert.ToString(operatore1/operatore2);
|
risultato=Convert.ToString(p_operatore1/p_operatore2);
|
||||||
return risultato;
|
return risultato;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -13,7 +13,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("calcolatrice")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("calcolatrice")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+81aee42076c07c4c339197485cbd47a851e6dddf")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1759e6dafc4e5449ac9d6ac747bb193f4929b477")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("calcolatrice")]
|
[assembly: System.Reflection.AssemblyProductAttribute("calcolatrice")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("calcolatrice")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("calcolatrice")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
0fa6a2a533d06ae21ae65e08e83ea81139a4541d35132c49b55ca4b3fef5af4c
|
cb4065fd7e7d08d82741142fde1129e9d537673ea9e0ce9eca317fe0b0551f5b
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user