Advertisement
NikJord

maafaka pojaka :D

Nov 8th, 2011
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.83 KB | None | 0 0
  1. #include <cstdlib>
  2. #include<stdio.h>
  3.  
  4.  
  5. int main ()
  6. {
  7.     int n,broj,i,br,c,smenet=0,b,smenet2;
  8.    
  9.                      printf("Vnesi go brojot=");
  10.                      scanf("%d",&broj);
  11.                          br=broj;
  12.                          
  13.                          while(br>0)
  14.                          { c=br%10;
  15.                          if(c!=3)
  16.                           { smenet=smenet*10+c;}
  17.                            br/=10;
  18.                          }    smenet2=0;                  
  19.                           while(smenet>0)
  20.                           { b=smenet%10;
  21.                             smenet2=smenet2*10+b;
  22.                             smenet/=10;
  23.                             }
  24.                             printf("%d",smenet2);                            
  25.     system("pause");
  26.     return 0;
  27. }
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement