Advertisement
Filip13

Untitled

Oct 3rd, 2022 (edited)
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int x ;
  7. cin >> x;
  8.  
  9. int row = (x / 5) + 1;
  10.  
  11. int column = (x % 5) + 1;
  12. cout << row << " " << column;
  13.  
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement