Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int num, count=0, aux=0;
- printf("Digite um nรบmero: ");
- scanf("%d", &num);
- while(count != num ) {
- if(aux%2 != 0) {
- printf("\nImpar: %d", aux);
- count++;
- }
- aux++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement