Something
public text v1 · immutableint fin(int nb, int count)
{
int c;
int modulo;
modulo = 1;
c = 1;
while (c != count)
{
modulo = modulo * 10;
c++;
}
my_putchar((nb / modulo) + 48);
while (modulo >= 10)
{
c = nb % modulo / (modulo / 10);
modulo = modulo / 10;
my_putchar(c + 48);
}
}
int my_put_nbr()
{
int c;
int nb;
int count;
if (nb < 0)
{
nb = nb * -1;
my_putchar('-');
}
c = nb;
count = 1;
while (c > 9)
{
c = c / 10;
count++;
}
fin(nb, count);
}