可以表示为:a>b && a<c
举个例子:
#include <stdio.h>
int main(){
int a,b,c;
a=10;b=20;c=30;
if (a>b && a<c)
printf("1.This is: a>b and a<c\n");
else
printf("1.This is not: a>b and a<c\n");
a=25;b=20;c=30;
if (a>b && a<c)
printf("2.This is: a>b and a<c\n");
else
printf("2.This is not: a>b and a<c\n");
}
执行的效果如下:
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/91529822720e0cf31fa90b170246f21fbf09aa84?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)