VitorH

Untitled

May 16th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int a, b, impar, i;
  5.     printf("Entre com dois numeros inteiros: ");
  6.     scanf ("%d %d", &a, &b);
  7.     i=a;
  8.     for (i>=a;i<b;i++)
  9.     {
  10.         impar=i%2;
  11.         if (impar!=0)
  12.         printf ("%d ", i);
  13.     }
  14.     return(0);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment