Question: c programming, thank you! Write a complete program The program must do the following: Opens an input file in.txt for reading. Reads the first line
c programming, thank you!

Write a complete program The program must do the following: Opens an input file "in.txt" for reading. Reads the first line from the file and saves its content in a local variable (as an int) firstInt. Reads the second line from the file and saves its content in a local variable (as an int) secondint. Uses a predefined function is Multiple() to decide if secondent is a multiple of firstInt. (see function prototype of isMultiple() below) . 1 isMultiple() determines for a pair of integers if the second integer is a multiple of the first The function returns 1 (true) if the second is a multiple of the first, it returns @ (false) if the second is not a multiple of the first/ int isMultiple (int firstValue, int second Value); Prints the result to stdout (the screen), see example file content and output below. Example 1 content of the file in.txt: 2 4 Output to the screen (when using example 1): 4 is a multiple of 2 Example 2 content of the file in.txt: 3 5 Output to the screen (when using example 2): 5 is not a multiple of 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
