Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- intmain(){
- int num;
- printf("digite o numero:");
- scanf("%d",&num);
- if(num>0)
- if(num%2==0)
- printf("par");
- else
- printf("impar");
- else
- printf("o numero deveria ser maior que zero");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment