Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- int num;
- printf("Dame 1 numero:\n");
- scanf("%d",&num);
- getchar();
- if( num%2 == 0){
- printf("El numero es par");
- }else{
- printf("El numero es impar");
- }
- if(num==2){
- printf("Es el numero 2");
- }
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement