using System.Collections.Generic;
using System.Threading.Tasks;
public class pulseDisplay
public int BCD(int resultat)
int hund = resultat / 100;
int tiere = (resultat - 100 * hund) / 10;
int enere = resultat % 10;
string BCD = Convert.ToString(hund, 2).PadLeft(4, '0') + Convert.ToString(tiere, 2).PadLeft(4, '0') + Convert.ToString(enere, 2).PadLeft(4, '0');
int pulseBCD = Convert.ToInt16(BCD, 2);