Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Print the number 0 using write()

#include <stdio.h>

int main(void) {
    int n = 123;

    putchar((n % 10) + '0');
    n /= 10;
    putchar((n % 10) + '0');
    n /= 10;
    putchar((n % 10) + '0');

    return 0;
}
Source by cboard.cprogramming.com #
 
PREVIOUS NEXT
Tagged: #Print #number
ADD COMMENT
Topic
Name
4+1 =