[ create a new paste ] login | about

Link: http://codepad.org/vpikk03q    [ raw code | output | fork ]

slevy1ster - C, pasted on May 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>

 int main()
{
    char alphabet[20];
    int i;

    for (i = 0; i <= 20; i++)
    {
    printf("Enter in a letter:\n");
    scanf("%s", alphabet[i]);
        if (alphabet[i] == alphabet[i+1])
        {
            printf("Duplicate Letters");
        };
    return 0;
    }

}


Output:
1
2
Enter in a letter:
Duplicate Letters


Create a new paste based on this one


Comments: