Write a function int multiple


Write a function int multiple(int a, int b) that determines for a pair of integers whether the second integer is a multiple of the first. The function takes two integer arguments and return 1(true) if the second is a multiple of the first and 0(false) otherwise. Use this function in a program that inputs a series of pairs of integers.
? You program should be able to continue processing multiple input series as shown in the example.
? You program should be able to give feedback on invalid input as shown in the example.
? You program should print an ending when user press "Ctrl + D" as shown in the example.
Example:
This program will test if the 2nd integer is multiple of 1st integer.
Please input two integers:2 5
2nd integer is NOT a multiple of 1st integer!
Please input two integers:2 4
2nd integer is a multiple of 1st integer!Please input two integers:4 2
Invalid input!!
Please input two integers:-3 4
Invalid input!!
Please input two integers:3 -4
Invalid input!!
Please input two integers:^D

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a function int multiple
Reference No:- TGS097089

Expected delivery within 24 Hours