summaryrefslogtreecommitdiff
path: root/wk2/sect2/alpha.c
diff options
context:
space:
mode:
Diffstat (limited to 'wk2/sect2/alpha.c')
-rw-r--r--wk2/sect2/alpha.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/wk2/sect2/alpha.c b/wk2/sect2/alpha.c
deleted file mode 100644
index 054950f..0000000
--- a/wk2/sect2/alpha.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <stdio.h>
-#include <ctype.h>
-#include <cs50.h>
-#include <string.h>
-
-int main(void)
-{
- string word = get_string("Word: ");
- int l = strlen(word);
- for (int i = 0; i < l - 1; i++)
- {
- // If NOT alphabetical
- if (word[i] > word[i + 1])
- {
- printf("No\n");
- return 0;
- }
- }
- printf("Yes\n");
-}