Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.  
  5. int num;
  6.  
  7. printf("Dame 1 numero:\n");
  8. scanf("%d",&num);
  9. getchar();
  10.  
  11.  
  12. if( num%2 == 0){
  13. printf("El numero es par");
  14. }else{
  15. printf("El numero es impar");
  16. }
  17.  
  18.  
  19. if(num==2){
  20. printf("Es el numero 2");
  21. }
  22.  
  23.  
  24. getchar();
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement