Advertisement
Josif_tepe

Untitled

Mar 6th, 2024
695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.     int a, b;
  5.     scanf("%d%d", &a, &b);
  6.  
  7.     if(a > b) {
  8.         b = a - b;
  9.     }    
  10.     printf("%d, %d, %d\n", a, b, a / b);
  11.     return 0;
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement