Skip to content

Commit

Permalink
2-print_alphabet_x10.c
Browse files Browse the repository at this point in the history
  • Loading branch information
victorpreston committed Jun 20, 2023
1 parent 32ff898 commit e657795
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions 0x02-functions_nested_loops/2-print_alphabet_x10.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include "main.h"

/**
* print_alphabet_x10 - Print lowercase alphabet 10 times
*/

void print_alphabet_x10(void)
{
char num, letter;

for (num = 0; num <= 9; num++)
{
for (letter = 'a'; letter <= 'z'; letter++)
{
_putchar(letter);
}
_putchar('\n');
}
}

0 comments on commit e657795

Please sign in to comment.