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: