Expected 12 3 5- 2 4 6 10+ 3 6 9 12 15+ 4 12 16 20+ 5 10 15 20 25 CD 1 2 3 4 5 6 7 14 21 8 16 24 9 18 27 20 30 10 2 3 4 6 w 5 6 7 8 9 10+ 12 14 16 18 20+ 15 18 21 24 27 30- 40+ 50- WN 8 10 6 9 12 8 12 16 20 24 28 32 36 10 15 20 25 30 35 40 45 12 18 24 30 36 42 48 54 28 35 42 49 56 63 70- 32 40 48 56 64 72 80- 36 45 54 63 72 81 90- 40 50 60 70 80 90 100 9 60- Got 1 2 2 4 3 6 8 10 4 5 1 2 2 4 3 6 4 8 5 10 6 12 7 14 8 16 9 10 18 20 3 6 9 12 15 4 5+ 8 10- 12 15 16 20 20 25 3 4 5 6 7 6 8 10 12 9 12 15 18 12 16 20 24 15 20 18 24 21 28 24 32 27 36 45 54 63 72 30 40 50 60 70 80 CO 8 14 93 16 21 24 28 32 25 30 35 40 30 36 42 48 35 42 49 56 40 48 56 64

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Improve my C Program to make my multiplication table more aligned.

This is my code:

#include<stdio.h>

int main(){

int size;

scanf("%d", &size);

for (int i = 1; i <=size; i++){

   for (int j = 1; j <=size; j++){

        printf("   %d", i * j);

}

printf("\n");

}

return 0;

}

Expected
1
2
3 4 5+
6
10+
9 12
15
4
8
12 16 20+
5 10 15 20 25
3
1
2
2
4
2 3
4 6
3 6 9
4
5
6
7
8
6
LO
CD
10
4 5
8
LD
сп
12 18
14 21 28
16
24
9 18 27 36
10
10 12
12
15
12 16 20 24 28 32 36
15 20 25
30 35 40 45
24 30 36 42
48 54
35 42 49
56 63
70+
32 40 48 56 64 72 80+
45 54 63
72 81
90+
LO
20 30 40 50
7
8 9
10+
14 16 18
20+
18 21 24 27 30+
40-
50+
60-
الله
60 70 80 90 100
Got
1
2
3
ليا
4
5
сл
1.0
2
4
6
6
1
2
4
3 6
4
8
5
8
10
3
6
03
8
9
12
12 16
15
2 3 4
6
9
12
4
50
10 15
18
21
24
27
03
12
7 14
8 16
9 18
10 20 30
20
5+
10+
15
5
8
10
14 161
12 15 18
21
24
16 20 24 28
32
20
25
30 35 40
24 30 36
42
28 35 42 49 56
32 40
48
56
64
36
45 54
63
72
40 50 60 70
20
25
6 7
12
CO
80
Transcribed Image Text:Expected 1 2 3 4 5+ 6 10+ 9 12 15 4 8 12 16 20+ 5 10 15 20 25 3 1 2 2 4 2 3 4 6 3 6 9 4 5 6 7 8 6 LO CD 10 4 5 8 LD сп 12 18 14 21 28 16 24 9 18 27 36 10 10 12 12 15 12 16 20 24 28 32 36 15 20 25 30 35 40 45 24 30 36 42 48 54 35 42 49 56 63 70+ 32 40 48 56 64 72 80+ 45 54 63 72 81 90+ LO 20 30 40 50 7 8 9 10+ 14 16 18 20+ 18 21 24 27 30+ 40- 50+ 60- الله 60 70 80 90 100 Got 1 2 3 ليا 4 5 сл 1.0 2 4 6 6 1 2 4 3 6 4 8 5 8 10 3 6 03 8 9 12 12 16 15 2 3 4 6 9 12 4 50 10 15 18 21 24 27 03 12 7 14 8 16 9 18 10 20 30 20 5+ 10+ 15 5 8 10 14 161 12 15 18 21 24 16 20 24 28 32 20 25 30 35 40 24 30 36 42 28 35 42 49 56 32 40 48 56 64 36 45 54 63 72 40 50 60 70 20 25 6 7 12 CO 80
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education