CodeMan
Home
Uva
AtCoder
Codechef
Codeforce
Hackerrank
LeetCode
Devskill
TopCoder
Spoj
Algorithm
Python3
Hackerearth
Uri
C++
Data Structure
Saturday, September 21, 2019
প্রোগ্রামিং সমস্যা 2 - [৫২ সমস্যা বই] জোড়-বিজোড়-২
#include< iostream > using namespace std; int
main
() {
int
tc;
string s;
cin >> tc;
while
(tc--) {
cin >> s;
cout << ((s[s.
size
()-
1
]%
2
)?
"
odd
"
:
"
even
"
) << endl;
}
return
0
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment