diff --git a/c/for_uint/for_uint.c b/c/for_uint/for_uint.c new file mode 100644 index 0000000..4a0e21a --- /dev/null +++ b/c/for_uint/for_uint.c @@ -0,0 +1,19 @@ +#include +#include + +int +main (void) +{ + uint8_t a = 0, + b = 255, + c; + + c = a; + do + { + printf ("%d,", c); + } + while (c++ != b); + + return 0; +}