View Code of Problem 3924

#include<stdio.h>
#include<string.h>
#include<math.h>

int main() {
	char x,x1;
	while((x=getchar())!=EOF){
		if(x!=x1){
			printf("%c",x);
			x1=x;
		}
		
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 3924