Skip to content

Commit b5e6718

Browse files
committed
added: second task
1 parent e892197 commit b5e6718

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#include "main.h"
2+
3+
/**
4+
* print_alphabet - print all lower alpha
5+
*
6+
* Return: return nothing
7+
*/
8+
9+
void print_alphabet(void)
10+
{
11+
int c = 97;
12+
while (c <= 122)
13+
{
14+
_putchar(c);
15+
c++;
16+
}
17+
_putchar('\n');
18+
}

0x02-functions_nested_loops/main.h

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
int _putchar(char);
2+
void print_alphabet(void);

0 commit comments

Comments
 (0)