61
64
69
版主
#include<iostream> using namespace std; int main() { int num; cin>>num; if(num%2==0){ cout <<num<< "为偶数" << endl; } if(num%2!=0){ cout <<num<< "为奇数" << endl; } return 0; }
使用道具 举报
|山东智趣岛论坛 ( 鲁ICP备2023024048号 )
GMT+8, 2025-3-1 10:46 , Processed in 0.174275 second(s), 35 queries .
Powered by Discuz! X3.3 Licensed
Copyright © 2001-2020, Tencent Cloud.