View Code of Problem 43

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char s[100],s1[100];
    gets(s);
    int i,j;
    for(i=0;i<strlen(s);i++){
        if(s[i]>='a'&&s[i]<='z' ||s[i]>='A'&&s[i]<='Z'){
            for(j=0;;j++){
                s1[j]=s[i];printf("%c",s1[j]);break;
            }
        }
    }
    return 0 ;
}

Double click to view unformatted code.


Back to problem 43