Questions: Top-30-c-programs-asked-in-interview_6304.html
27.WAP to print'xay'in place of every'a'in a string.
#include
#include
void main()
{
int i=0;
char str[100],x ='x',y='y' ;
printf("En ter the string\n:");
gets(str);
while(str[ i]!='\0')
{
if(str[i]= ='a')
{
printf("%c ",x);
printf("%c ",str[i++] );
printf("%c ",y);
}
else
{
printf("%c ",str[i++] );
}
}
getch();
}
27.WAP to print'xay'in place of every'a'in a string.
#include
#include
void main()
{
int i=0;
char str[100],x ='x',y='y' ;
printf("En ter the string\n:");
gets(str);
while(str[ i]!='\0')
{
if(str[i]= ='a')
{
printf("%c ",x);
printf("%c ",str[i++] );
printf("%c ",y);
}
else
{
printf("%c ",str[i++] );
}
}
getch();
}
1 comments:
Wap To Print Xay In Place Of Every'A'In A String. ~ Crushhack >>>>> Download Now
>>>>> Download Full
Wap To Print Xay In Place Of Every'A'In A String. ~ Crushhack >>>>> Download LINK
>>>>> Download Now
Wap To Print Xay In Place Of Every'A'In A String. ~ Crushhack >>>>> Download Full
>>>>> Download LINK ww
Post a Comment