C Programming Write a function int multiple(int a, int b) that determines for a
ID: 3653930 • Letter: C
Question
C Programming 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 pressExplanation / Answer
#include using namespace std; int multiple(int a, int b) { //a pair of integers whether the second integer is a multiple of the first. if(b%a==0) return 1; else return 0; } int main() { int a,b; coutb; if(multiple(a,b)) coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.