This is what I have so far, but I can\'t seem to get the answer toprint correctl
ID: 3617556 • Letter: T
Question
This is what I have so far, but I can't seem to get the answer toprint correctly. If the first integer divides evenly into thesecond one, it should print the correct answer and exit afterward.If it is not an even division, it should keep asking for numbersuntil it scans and find one that works. Thanks./*
Design an interactive input loop that scans pairs of integers untilit reaches a pair in which the first integer evenly divides thesecond.
*/
#include <stdio.h>
#include <stdlib.h>
int
main(void)
{
int a; /* first integer */
int b; /*second integer */
int division;
do{
printf("Enter twointegers: ");
scanf("%d%d",&a,&b);
division = a % b;
}while(division !=0);
printf("%d ",&division);
system("pause");
return(0);
}