Advertisement
HristoBaychev

odd or even - with acsii table

Oct 2nd, 2021
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int a;
  5.     printf("EnterA Number:");
  6.     scanf("%d",&a);
  7.     printf("%c%c%c",(a%2)*79,(a%2)*68,(a%2)*68);
  8.     printf("%c%c%c%c",(1-a%2)*69,(1-a%2)*86,(1-a%2)*69,(1-a%2)*78);
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement