从键盘输入两个整型变量a、b,若是奇效6是偶数, 且a2+b22200 则输出a与b的值,否则输出“不符合要 求”
时间: 2023-03-29 09:01:08 浏览: 65
可以回答这个问题。根据题意,可以使用以下代码来解决:
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
if (a % 2 == 1 && b % 2 == && a * a + b * b > 220) {
printf("%d %d", a, b);
} else {
printf("不符合要求");
}
return ;
}
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![-](https://img-home.csdnimg.cn/images/20210720083327.png)
![-](https://img-home.csdnimg.cn/images/20210720083327.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![xlsx](https://img-home.csdnimg.cn/images/20210720083732.png)
![ppt](https://img-home.csdnimg.cn/images/20210720083527.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)