Commit 5651d8cd by chazog

Upload New File

parent 004ca5ee
Showing with 37 additions and 0 deletions
#include <stdio.h>
#include <string.h>
int main()
{
int i, j, N, a;
const char gmail[11] = "@gmail.com";
printf("Please enter the number of email addresses: ");
scanf("%d", &N);
char email[N][90]; // name string
printf("please enter the emails:\n");
char array;
for (i = 0; i < N; i++)
{
scanf("%s", email[i]);
}
for (i = 0; i < array[i]; i++)
{
for (j = i + 1; j < 11; j++)
{
a = array(email[i], email[j]);
if (a == 0)
{
printf("Duplicate detected");
return 0;
}
}
}
printf("No duplicate");
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment