Find Your Solution Here

Codeforces

codeforces solution 118A – String Task

problem link–http://codeforces.com/problemset/problem/118/A

By coder_87, contest: Codeforces Beta Round #89 (Div. 2), problem: (A) String Task, Accepted, #

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int i;
    char s[100];
    scanf("%s",&s);

    for(i=0;i<strlen(s);i++){
        if(s[i]>=65&&s[i]<=90)
        {
            s[i]=97+s[i]-65;
        }
        if(s[i]!='a'&&s[i]!='e'&&s[i]!='i'&&s[i]!='o'&&s[i]!='u'&&s[i]!='y')
        {
            printf(".%c",s[i]);
        }
    }
    return 0;
}

Leave a Reply