In C++ problema arata cam asa :
#include <iostream>
#include <cstring>
using namespace std;
int main ( )
{
char c [21] , x;
cin >> c ;
x = c [0] ;
for ( int i = 0 ; i < strlen (c) ; i++ )
if ( x == c [i] )
{ strcpy ( c + i , c + i + 1 ) ; i -- ; }
cout << c;
return 0;
}
#copaceibrainly