Advertisement
touhid_xml

Odd Even in C

Jan 6th, 2019
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(){
  3.     int T,i,n;
  4.     scanf("%d",&T);
  5.     for(i=0;i<T; i++){
  6.         scanf("%d",&n);
  7.         printf("%s", n%2==0 ? "even\n" : "odd\n" );
  8.         }
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement