C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdio.h>
#include<string.h>
#include<stdlib.h>
int length(char x[100]);
int main() {
char str[100];
int l=0;
int flag;//samitch
fgets(str,100,stdin);
l=length(str);
printf("string length %d",l);
if (l==1)//for only 1 word
{
printf("Unique");
exit(0);
}
for(int i=0;i<=l;i++)//comparing
{
for(int j=0;j<=l;j++)
{
if(i==j)//prevent same position error
{
continue ;
}
else if (str[i]==str[j])
{
flag=0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run