#include <stdio.h>
#include<stdlib.h>
int main()
{
char a,b,c;
printf("输入两个数值:\n");
scanf("%c %c",&a,&b);
c = a-b;
if(c%2==0)
if(a>b)
{
a++;
printf("%c\n",a);
}
else if(c%2 != 0)
printf("%c\n",(b+1));
return 0;
}
#include <stdio.h>
#include<stdlib.h>
int main()
{
char a,b,c;
printf("输入两个数值:\n");
scanf("%c %c",&a,&b);
c = a-b;
if(c%2==0)
if(a>b)
{
a++;
printf("%c\n",a);
}
else if(c%2 != 0)
printf("%c\n",(b+1));
return 0;
}