Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include<stdio.h>
- int main ()
- {
- int n,broj,i,br,c,smenet=0,b,smenet2;
- printf("Vnesi go brojot=");
- scanf("%d",&broj);
- br=broj;
- while(br>0)
- { c=br%10;
- if(c!=3)
- { smenet=smenet*10+c;}
- br/=10;
- } smenet2=0;
- while(smenet>0)
- { b=smenet%10;
- smenet2=smenet2*10+b;
- smenet/=10;
- }
- printf("%d",smenet2);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement