Mitkashin

Telefonski Pretplatink / Lab2.3

Oct 17th, 2016
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int tel;
  5.     scanf("%d",&tel);
  6.     printf("%03d/%03d-%03d ",tel/1000000,(tel/1000)%1000,tel%1000);
  7.  
  8.     if((tel/1000000==70)||(tel/1000000==71)||(tel/1000000==72))
  9.         printf("T-mobile");
  10.        
  11.     if((tel/1000000==75)||(tel/1000000==76))
  12.         printf("One");
  13.  
  14.     if ((tel/1000000==77)||(tel/1000000==78))
  15.         printf("Vip");
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment