using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace exo3 { public class storing { private long _test; public long test; public static long toChangeTest(long a) { if (a > 0) { return test = a; } else return a; } } class Program { static void Main(string[] args) { long a; Console.WriteLine("saisir un long :"); a = Console.Read(); a = storing.toChangeTest(a); Console.WriteLine("la valeur de a est : " + a); Console.Read(); } } }