View Code of Problem 3924

#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.


Back to problem 3924