View Code of Problem 43

#include<stdio.h>
#include<string.h>
#define N 100
int main()
{
	char a[N];
	int i=0,j=0;

	gets( a );

	j = strlen( a );

	for(i = 0; i < j; i++)
	{
		if( a[i] <= 'z' && a[i] >= 'A' )
		{
			printf("%c", a[i]);
		}
	}

	printf("\n");
    
	return 0;
}

Double click to view unformatted code.


Back to problem 43