Print the Reminder Using C-Program - Learn Engineering

All the news and updates relevant to Engineering. You can also Write a post here

Breaking

Saturday, June 13, 2020

Print the Reminder Using C-Program

Question

Division of Two Numbers

Sample TestCase Expected Output

1. 12 20


2. 8 32


Answer

    #include<stdio.h>
    int main()
    {
        int num1,num2,quot;
        scanf("%d %d", &num1, &num2);
        quot = num1 % num2;
        printf("%d",quot);
        return 0;
    }

Follow Us For More...

1 comment: