The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
need some help with this. program can't run properly. Thank you.Â
Â
COMP 91.101 (201, 202, 204)Assignment 14F15 - Dr. LinDue date:10-07-2015 (Wed.), 2pmSubmission: C source file,daily14.c, on BlackboardDescription:Create a project called Daily14. Add a C source file to the project named daily14.c.Write a program that asks the user for a positive integer (greater than zero). Verify that youhave received a valid number and trap the user if they have not given a valid input value. Ask the userfor another positive integer and verify this one also. Notice that the operation of getting a positiveinteger is the same in both cases. Try to use a single function for this task that returns the positiveinteger that the user types in. You can simply call the function twice to get the values that you need.Once you have two positive integers use a function to compute the largest integer that evenly dividesboth of the input values. Print this result on the screen.Your function should compute this value by starting at the smaller of the two values andcounting down by one until you find a number (the number 1 will always do it) that evenly divides bothof the original numbers. For example if you enter the number 8 and 4 your function will return 4because 4 goes into 4 one time and into 8 two times. Call this function and output the result on thescreen.Your program output should look something like the following:At the top of your program you should have a comment section that follows the below format:/***********************************************Author: <insert your name>Date: <insert today’s date>
Attachments: