208A.Dubstep

Problem Link

<Source Code>

#include<string.h>
#include<stdio.h>
int main()
{
char a[1000];
int l,i,m,n,flag=0;
gets(a);
l=strlen(a);
if(a[0]=='W'&&a[1]=='U'&& a[2]=='B')
    printf("");
for(i=0;i<l;i++)
{
 if(a[i+0]=='W'&&a[i+1]=='U'&& a[i+2]=='B')
{
    printf(" ");
    i+=2;
}
else{
printf("%c",a[i]);
}
}
printf("\n");
}
Advertisements

About waprogramming

I am in CSE,from CUET
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