Advertisement
dsavov_02

четно и нечетно

Feb 23rd, 2022
789
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int x = 0;
  6.     printf("vuvedi x:");
  7.     scanf("%d", &x);
  8.    
  9.    if(x%2 == 0){
  10.        printf("chisloto %d e chetno\n", x);
  11.    } else {
  12.        printf("chisloto %d e nechetno\n", x);
  13.    }
  14.  
  15.     return 0;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement