Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int a,b,x,y;
- printf("Vnesi dva broja a i b\n");
- scanf("%d %d", &a, &b);
- if(a<b){
- x=a;
- y=b;
- }else{
- x=b;
- y=a;
- }
- while(x<=y){
- if(x%2!=0){
- printf("Prosti broevi se %d \n",x);
- }
- x++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement