Skip to content

Commit

Permalink
1-alphabet.c
Browse files Browse the repository at this point in the history
  • Loading branch information
victorpreston committed Jun 20, 2023
1 parent 5530b11 commit 32ff898
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 0x02-functions_nested_loops/1-alphabet.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "main.h"
/**
* print_alphabet - prints all alphabets in lowercase.
* Return: On success 1.
*/
void print_alphabet(void)
{
char i;

for (i = 'a'; i <= 'z'; i++)
{
_putchar(i);
}
_putchar('\n');

}

0 comments on commit 32ff898

Please sign in to comment.