China Naming Network - Ziwei Dou Shu - c language password message

c language password message

Sorry, the program I just wrote is a bit wrong: the correction is as follows: (Compilers please do not delete it!)

#include lt; stdio.hgt;

#include lt;string.hgt;

#define N 100

void main()

{

char s[N ];

int i;

int a;

printf("Input String: ");

scanf("s" , s);

for(i=0; ilt; = strlen(s); i )

{

if(s[i]gt; ='A'amp;amp;s[i]lt;='Z')

s[i]=26-s[i] 64 1 64;

else if (s[i]gt;='a'amp;amp;s[i]lt;='z')

s[i]=26-s[i] 96 1 96;

p>

}

printf("s\n", s);

}