#include <stdio.h> #include <string.h> #include <math.h> int main(){ char a,temp; while((a=getchar())!=EOF){ if(a!=temp){ printf("%c",a); } temp=a; } }
Double click to view unformatted code.