Advertisement
dllbridge

Untitled

Oct 27th, 2022
1,186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.70 KB | None | 0 0
  1.  
  2.  
  3. #include   <stdio.h>
  4.  
  5.  
  6.  
  7.  
  8.  
  9. int     a,                                        //  Первое число
  10.         b,                                        //  Второе число
  11.         Y;                                        //  Квадрат наименьшего числа
  12.  
  13.  
  14.  
  15. ////////////////////////////////////////////////////
  16. int main()                                        //
  17. {
  18.  
  19.     printf("a = "); scanf("%d", &a);
  20.     printf("b = "); scanf("%d", &b);    
  21.     printf("- - - - - - - - - - - - -\n");
  22.  
  23.     if(a > b) Y = b * b;
  24.     else      Y = a * a;
  25.    
  26.     printf("Y = %d \n", Y);
  27.  
  28.     _asm { mov eax, b
  29.  
  30.            mov   Y, eax
  31.     }
  32.     printf("Y = %2d \n", Y);
  33. }
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement