Write a program in C to display the multiplication table for numbers 1-12 in a square table. • Create a number guessing game that sets a number and then allows the user to guess it. The number will be between 1 and 10. • To calculate a random number between 1-10 for the game use: guessAnswer = (rand() % 10) + 1; ( the output should be same as picture and please provide screenshot

icon
Related questions
Question

Write a program in C to display the multiplication table for numbers 1-12 in a square table.
• Create a number guessing game that sets a number and then allows the user to guess it. The number will be between 1 and 10.
• To calculate a random number between 1-10 for the game use:
guessAnswer = (rand() % 10) + 1;

( the output should be same as picture and please provide screenshot

 

Multiplication Table:
2
3
5
4
6
10
6
9
12 15
8
12 16 20
10 15 20 25
12
1
2
3
4
5
6
7
8
9
10
4
8
6
12
18 21 24 27 30
36
33
36 40 44 48
24 28 32
55 60
30 35 40 45 50
18 24 30 36 42 48 54 60 66
72
21 28 35 42 49 56 63
70 77 84
56 64 72
80 88 96
63 72 81 90 99 108
70 80 90 100 110 120
77 88 99 110 121 132
84 96 108 120 132 144
14
16 24 32 40 48
18 27 36 45
54
20 30 40 50 60
11 22 33 44 55 66
12 24 36 48 60 72
7
8
9 10 11 12
14 16 18 20 22 24
Enter your guess (1-10):
5
Too high!
Enter your guess (1-10):
3
Too Low!
Enter your guess (1-10):
4
You guessed it!
Transcribed Image Text:Multiplication Table: 2 3 5 4 6 10 6 9 12 15 8 12 16 20 10 15 20 25 12 1 2 3 4 5 6 7 8 9 10 4 8 6 12 18 21 24 27 30 36 33 36 40 44 48 24 28 32 55 60 30 35 40 45 50 18 24 30 36 42 48 54 60 66 72 21 28 35 42 49 56 63 70 77 84 56 64 72 80 88 96 63 72 81 90 99 108 70 80 90 100 110 120 77 88 99 110 121 132 84 96 108 120 132 144 14 16 24 32 40 48 18 27 36 45 54 20 30 40 50 60 11 22 33 44 55 66 12 24 36 48 60 72 7 8 9 10 11 12 14 16 18 20 22 24 Enter your guess (1-10): 5 Too high! Enter your guess (1-10): 3 Too Low! Enter your guess (1-10): 4 You guessed it!
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer