Mon Dec 10, 2012 9:41 am
#include<iostream.h>
#include<ctype.h>
void main()
{
char line[]="Good@LOGIC!";
for(int i=0;line[i]!='\0';i++)
{
if(!isalpha(line[i]))
line[i]='$';
else if(islower(line[i]))
line[i]=line[i]+1;
else
line[i]=line[i+1];
}
cout<<line;
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.