1 solutions
-
0
C :
#include<stdio.h> int main(){ int x; scanf("%d",&x); if(x%2==0){ printf("%s","y e s"); }else{ printf("%s","n o"); } return 0; }
C++ :
#include<iostream> using namespace std; int main(){ int x; cin>>x; if(x%2==0){ cout<<"y e s"<<endl; }else{ cout<<"n o"<<endl; } }
Python :
r = int(input()) if r % 2 == 0 : print('y e s') else: print('n o')
- 1
Information
- ID
- 10835
- Time
- 1000ms
- Memory
- 16MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By