Question: Instructions: 1. Write the prototype for a function that has the following header: char fc1(int a) 2. Write the call for a function that has

Instructions:

1. Write the prototype for a function that has the following header: char fc1(int a)

2. Write the call for a function that has the following prototype: bool fc2();

3. Write the header for a function that has the following call:

bool a; float b; fc3(a, b);

4. Write a program that uses a function in order to display the LCM (least common multiple) for many pairs of integers. The user will have to keep inputting numbers. To end the program he/she has to input zero (as one or both integers).

Note: You can write the function to return a value or not. For extracredit do it both ways.

Example of running:

Input 2 integer numbers (end by inputting zero): 15 27 LCM(15, 27) = 135

Input 2 integer numbers (end by inputting zero): 6 18 LCM(6, 45) = 18

Input 2 integer numbers (end by inputting zero): 48 36 LCM(8, 6) = 24

Input 2 integer numbers (end by inputting zero): 1 0

Good Bye!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!