Advertisement
pasholnahuy

Untitled

Oct 21st, 2023
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. for (int64_t i = a - 1; i < b; ++i) {
  2. if (i == a - 1) {
  3. for (int j = 0; j < n + 1; ++j){
  4. printf(" ");
  5. }
  6. for (int64_t j = a; j < b; ++j) {
  7. printf("%*lld", n, j);
  8. printf(" ");
  9. }
  10. } else {
  11. printf("%*lld", n, i);
  12. printf(" ");
  13. for (int64_t j = a; j < b; ++j) {
  14. printf("%*lld", n, i * j);
  15. printf(" ");
  16. }
  17. }
  18. printf("\n");
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement