View Code of Problem 3924

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

Double click to view unformatted code.


Back to problem 3924