Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.68 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main() {
  5.     int x;
  6.     int y;
  7.    
  8.     printf("Zadejte dve cela cisla v intervalu od -10000 do 10000.");
  9.     printf("\n");
  10.        scanf("%d%d", &x, &y);
  11.        int soucet = x+y;
  12.        
  13.        
  14.        
  15.        
  16.         if (x > 10000 && x < -10000)
  17.             printf("Vstup je mimo interval!");
  18.        
  19.         else if (y > 10000 && y < -10000)
  20.             printf("Vstup je mimo interval!");
  21.         return x;
  22.        
  23.        
  24.        
  25.    
  26.    
  27.    
  28.    
  29.    
  30.     printf("Desitkova soustava: %d %d", x, y);
  31.     printf("\n");
  32.     printf("Součet: %d ", soucet);
  33.      
  34.    
  35.    
  36.    
  37.     return 0;      
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement