Thursday, October 17, 2019

C++ program to find Quotient and Remainder



 Program


#include<iostream>
using namespace std;

int main()
{
    int a = 15, b = 3;
    int quotient, remainder;

    quotient = a / b;
    remainder = a % b;

    cout<<"Quotient is "<<quotient<<endl;
    cout<<"Remainder is "<<remainder;
}

Video explanation

No comments:

Post a Comment