Advertisement
jordanov

prost

Oct 24th, 2015
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int a,b,x,y;
  7.     printf("Vnesi dva broja a i b\n");
  8.     scanf("%d %d", &a, &b);
  9.  
  10.     if(a<b){
  11.         x=a;
  12.         y=b;
  13.     }else{
  14.         x=b;
  15.         y=a;
  16.     }
  17.  
  18.      while(x<=y){
  19.         if(x%2!=0){
  20.           printf("Prosti broevi se %d \n",x);
  21.         }
  22.         x++;
  23.      }
  24.  
  25.  
  26.  
  27.  
  28.  
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement