Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

odd and even number c

// @Author: Subodh 
// 1 liner solution
(num & 1) ? cout << num << " is odd" : cout << num << " is even" << endl;
 
PREVIOUS NEXT
Tagged: #odd #number
ADD COMMENT
Topic
Name
7+6 =