Computer Science, asked by noorkhan421996, 10 months ago

write the function that request the user for two integers and outputs their remainder after division.​

Answers

Answered by Anonymous
4

Answer:

Here we use a function named returnremainder() which will take two inputs from user and return the remainder result after dividing them

Then we call the function from the main().

#include<stdio.h>

int returnremainder(int a, int b)

{

int rem ;

rem = a%b;

return rem;

}

int main()

{ int x, y , result;

scanf("%d", &x);

scanf("%d" , &y);

result = returnremainder(x,y);

return 0;

}

Similar questions