summaryrefslogtreecommitdiff
path: root/wk2/sect2/alpha.c
blob: bf9a30b751727f1c1e2dd3f837f34c01b8faa33a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdio.h>
#include <ctype.h>
#include <cs50.h>
#include <string.h>

int main(void)
{
    string word = get_string("Word: ");
    int l = strlen(word);
    int k = 0;
    for (int i = 0; i < l; i++)
    {
        if (((word[i] > 96 && word[i] < 123) && (word[i - 1] > 96 && word[i - 1] < 123) && (word[i] > word[i - 1])))
        {

        }
    }
    if ()
    {
        printf("%s\n", word);
    }
}