Home > Back-end >  For help! Be urgent!
For help! Be urgent!

Time:11-25

Input Z need to display B, not/

CodePudding user response:

Fyi:
 # include & lt; Stdio. H> 

Int main (void)
{
C=getchar int ();
If (c & lt; 'A' | | c & gt; 'Z')
{
Printf (" input error \ n ");
return 1;
}

C=c + 2;
If (c & gt; 'Z') c=c - 26;
Printf (" % \ n "c, c);

return 0;
}

CodePudding user response:

refer to the second floor ctrigger response:
are for reference only:
 # include & lt; Stdio. H> 

Int main (void)
{
C=getchar int ();
If (c & lt; 'A' | | c & gt; 'Z')
{
Printf (" input error \ n ");
return 1;
}

C=c + 2;
If (c & gt; 'Z') c=c - 26;
Printf (" % \ n "c, c);

return 0;
}

Okok,
  • Related