View Code of Problem 3924

#include<stdio.h>
#include<string.h>
int main(){
	char c,last;
	while((c=getchar())!=EOF){
		if(c!=last){
			printf("%c",c);
		}
		last=c;
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 3924