Skip to content

Commit e657795

Browse files
committed
2-print_alphabet_x10.c
1 parent 32ff898 commit e657795

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include "main.h"
2+
3+
/**
4+
* print_alphabet_x10 - Print lowercase alphabet 10 times
5+
*/
6+
7+
void print_alphabet_x10(void)
8+
{
9+
char num, letter;
10+
11+
for (num = 0; num <= 9; num++)
12+
{
13+
for (letter = 'a'; letter <= 'z'; letter++)
14+
{
15+
_putchar(letter);
16+
}
17+
_putchar('\n');
18+
}
19+
}

0 commit comments

Comments
 (0)