Function that displays the alphabet in C ...
Fabrice
-
fiddy Posted messages 441 Registration date Status Contributeur Last intervention -
fiddy Posted messages 441 Registration date Status Contributeur Last intervention -
Hello,
I would like to know how to create these functions, I have three to find, I have been searching for an hour but ...
Write a function that displays the alphabet in lowercase on a single line, in ascending order starting from the letter 'a'.
--
Write a function that displays the alphabet in lowercase on a single line, in descending order starting from the letter 'z'.
--
Write a function that displays all the digits on a single line in ascending order.
--
I am just starting with C ...
Thank you in advance.
I would like to know how to create these functions, I have three to find, I have been searching for an hour but ...
Write a function that displays the alphabet in lowercase on a single line, in ascending order starting from the letter 'a'.
--
Write a function that displays the alphabet in lowercase on a single line, in descending order starting from the letter 'z'.
--
Write a function that displays all the digits on a single line in ascending order.
--
I am just starting with C ...
Thank you in advance.
7 réponses
johand@osiris: ~/src/CCM/C $ cat alphabet.c #include <stdio.h> int main(void){unsigned char c;for(c='a';c<='z';c++)putchar((int)c);return 0 ;} I'll leave you the task of formatting and creating a function...
With a proper editor like Emacs, it's a piece of cake. Still, it’s important to leave some work.
Johan
--
Gates gave ^H sold you the windows.
GNU gave us the whole house.(Alexandrin)
Hello,
Ask for help with your exercises on CCM
;-)
--
Zen my nuggets ;-)
Make a gesture for the environment, close your windows and adopt a penguin.
Ask for help with your exercises on CCM
;-)
--
Zen my nuggets ;-)
Make a gesture for the environment, close your windows and adopt a penguin.
Everything is explained here: http://webhome.phy.duke.edu/~rgb/General/c_book/c_book/chapter2/integral_types.html#section-2
Dal