Advertisement
labib24

Untitled

Jan 13th, 2023
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. while(1)
  5. {
  6.  
  7.  
  8. int a;
  9. printf("Enter a number\n");
  10. scanf("%d",&a);
  11. if(a%2==0)
  12. {
  13. printf("Even number\n");
  14. }
  15. else
  16. {
  17. printf("Odd number\n");
  18. }
  19. }
  20.  
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement