View Code of Problem 43

#include<bits/stdc++.h>
using namespace std;

char a[100];

int main()
{
	gets(a);
	int len=strlen(a);
	for(int i=0;i<len;i++)
	{
		if(a[i]>='A'&&a[i]<='Z' )
			printf("%c",a[i]);
		if(a[i]>='a'&&a[i]<='z' )
			printf("%c",a[i]);		
	}
	return 0;
} 	
	

	
	

Double click to view unformatted code.


Back to problem 43