Advertisement
MikecIT

Vezba 1 // Zadatak 1

Sep 4th, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #‎include‬ <stdio.h>
  2. #include <stdlib.h>
  3. int main()
  4. {
  5. int br1,br2,max,min,i=0,br,max1;
  6. printf("Unesite br1: ");
  7. scanf("%d",&br1);
  8. printf("\nUnesite br2: ");
  9. scanf("%d",&br2);
  10. max=br1;
  11. min=br2;
  12. if(br2>max) max=br2,min=br1;
  13. i=1;
  14. max1=max;
  15. do{
  16. max1=max1/10;
  17. i=i*10;
  18. }while(max1!=0);
  19. br=max*i+min;
  20. printf("\n\nbr = %d",br);
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement