9511_workbook

solved exercises from algorithms & programming I (9511) prof. Cardozo
Index Commits Files Refs README
commit 69c4c081c95cef2f2414c3bd4ae07903fd38881b
parent 0b3cdc1840f4709669f0ae9438fcde463cdf3a80
Author: klewer-martin <martin.cachari@gmail.com>
Date:   Sun, 28 Mar 2021 18:57:28 -0300

Update;

Diffstat:
Aguia03/ex41.c | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/guia03/ex41.c b/guia03/ex41.c
@@ -0,0 +1,16 @@
+#include <stdio.h>
+
+typedef enum { JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC } month_t;
+
+const char months[][10] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"  };
+
+int main (void)
+{
+    month_t month;
+
+    month = MAR;
+
+    printf("Month: %s\n", months[month]);
+    
+    return 0;
+}