Advertisement
Dido09

Multiplication Table - C

Apr 26th, 2022
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int i, j;
  5. int table = 10;
  6. int max = 12;
  7.  
  8. for (i = 1; i <= table; i++) {
  9. for (j=0; j <= max; j++) {
  10. printf("%d x %d = %d\n", i, j, i*j);
  11. }
  12. printf("\n"); /* blank line between tables */
  13. }
  14.  
  15. return 0;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement