Advertisement
rdsedmundo

impares.c

May 9th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int num, count=0, aux=0;
  6.     printf("Digite um nรบmero: ");
  7.     scanf("%d", &num);
  8.  
  9.     while(count != num ) {
  10.         if(aux%2 != 0) {
  11.             printf("\nImpar: %d", aux);
  12.             count++;
  13.         }
  14.         aux++;
  15.     }
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement