Assignment 1. Write a program in C where you would perform the following tasks: Write a main() function where you will declare an unsigned integer a. You can assign any value you like. (e.g. a = 5) b. Make a call to function print_multiplication_table(..). You will pass the unsigned integer you defined earlier as an argument to the function call. C. You will define a function called print_multiplication_table(.-.) that takes in an unsigned integer parameter. This function should have void return type and print the multiplication table of the number passed into as an argument. a. For example, if the number passed into the function is 5, you program should print the following: 5 x 1 = 5 5 x 2 - 10 5 x 10 - 50

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.2: Returning A Single Value
Problem 13E
icon
Related questions
icon
Concept explainers
Question

Make a user defined program. Dont follow as said in first point to assign a value. 

 

Sample Output:

 

Enter a number: 5

 

5X1=5... And so on

Assignment
1. Write a program in C where you would perform the following tasks:
Write a main() function where you will declare an unsigned integer a. You can
assign any value you like. (e.g. a = 5)
b. Make a call to function print_multiplication_table(..). You will pass the unsigned
integer you defined earlier as an argument to the function call.
C. You will define a function called print_multiplication_table(.-.) that takes in an
unsigned integer parameter. This function should have void return type and print
the multiplication table of the number passed into as an argument.
a.
For example, if the number passed into the function is 5, you program should print the
following:
5 x 1 = 5
5 x 2 - 10
5 x 10 - 50
Transcribed Image Text:Assignment 1. Write a program in C where you would perform the following tasks: Write a main() function where you will declare an unsigned integer a. You can assign any value you like. (e.g. a = 5) b. Make a call to function print_multiplication_table(..). You will pass the unsigned integer you defined earlier as an argument to the function call. C. You will define a function called print_multiplication_table(.-.) that takes in an unsigned integer parameter. This function should have void return type and print the multiplication table of the number passed into as an argument. a. For example, if the number passed into the function is 5, you program should print the following: 5 x 1 = 5 5 x 2 - 10 5 x 10 - 50
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Operators
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning