/******************************************************************************
Online C Compiler.
Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <stdio.h>
int main()
{
int i=0,j=0;
char s[]="royalrohan";
for(;s[i]; i++)
for(j=i+1;s[j];j++)
if(s[i]==s[j])
printf("repeated characters=%c\n",s[i]);
}