View Code of Problem 3924

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

Double click to view unformatted code.


Back to problem 3924