c#: Exercice les tableaux
c#: Exercice les tableaux
Déclaration et initialisation des tableaux
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Comparaison_entre_For_While_Do_While_c_sharp
{
class Program
{
static void Main(string[] args)
{
int j=0;
final m=5;
int t1[] = {1,3,5};
int t2[] = {j-1,j,j+1};
int t3[] = {m-1,m,m+1};
int t4[] ;
t4 = {1,3,5};
float x1[] = {1,2,m,m+1};
float x2[] = {1.25,2.5,5};
double x3[] = {1,2.5,5.25,2*m};
}
}
}
utilisation des tableaux
|
