oops, wrong code copied
this is the right one
void setup() {
// put your setup code here, to run once:
float i = 0;
void setup() {
 // put your setup code here, to run once:
 float i = 0;
 int D1[][2]{3,6};
 int D2[][5]{4,5,2,6,7};
 int D3[][5]{4,5,2,8,7};
 int D4[][4]{3,5,2,8};
 int D5[][5]{4,3,2,8,7};
 int D6[][6]{4,3,2,6,8,7};
 int D7[][3]{4,5,8};
 int D8[][7]{4,3,5,2,6,8,7};
 int D9[][6]{4,3,5,2,8,7};
 int D0[][6]{4,3,5,6,8,7};
 for(int i=0;i>=2;i++){
 pinMode(D1[i], OUTPUT);
 digitalWrite(D1[i],HIGH);}
}
void loop() {
 // put your main code here, to run repeatedly:
Â
;}