/*
Assignment name  : ft_print_numbers
Expected files   : ft_print_numbers.c
Allowed functions: write
--------------------------------------------------------------------------------
Write a function that displays all digits in ascending order.
Your function must be declared as follows:

void	ft_print_numbers(void);
*/

#include <unistd.h>

void ft_print_numbers(void){
    char c;

    c = '0';
    while(c <= '9')
    {
        write (1, &c, 1);
        c++;
    }
}


//without int main() in the exam, separately! and include function.c above
int main() { 
    ft_print_numbers();

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: