Flowers Florish From France

 Problem Link


<Source Code>

#include<stdio.h>
#include<string.h>
#include<ctype.h>
int main()
{
char m,a[10000],b[10000],ch;
long long t,i,n,num,l,tem;
while(gets(a))
{tem=0;
if(a[0]==’*’)
break;
l=strlen(a);
n=0;
a[0]=toupper(a[0]);
for(i=1;i<l;i++)
{a[i]=toupper(a[i]);
if(a[i]==’ ‘)
tem++;
if(a[i]==’ ‘ && toupper(a[i+1])==(a[0]))
{n++;

}
}
if(n==tem)

printf(“Y\n”);
else
printf(“N\n”);

}
return 0;
}

Advertisements

About waprogramming

I am in CSE,from CUET
Quote | This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s