2614: 【例15.2】 偶数

内存限制:64 MB 时间限制:1.000 S
评测方式:文本比较 命题人:
提交:97 解决:63

题目描述

读入一个正整数$a$,如果$a$为偶数输出yes

输入

一个正整数$a$。

输出

偶数输出yes,否则什么也不输出。

样例输入 复制

12

样例输出 复制

yes

提示

#include<bits/stdc++.h>
using namespace std;
int x;
int main(){
    cin>>x;
    if(x%2==0) 
        cout<<"yes";
    return 0;
}