Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define width 10
- int main()
- {
- int n;
- printf("N = ");
- scanf("%d", &n);
- for (int i = 1; i <= 10; ++i)
- {
- for (int j = 1; j <= n; ++j)
- {
- if (i != 10) printf("%d x %d = %-*d", i, j, width, i * j);
- else printf("%d x %d = %-*d", i, j, width - 1, i * j);
- }
- printf("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement