Wednesday, October 28, 2020

Quotient and Remainder Numbers in C++

I wrote this program that will ask the user is asked to enter two number (divisor and dividend) and the quotient and the remainder of their division is computed.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price.





Program Listing


// divident.cpp
// Jake Rodriguez Pomperada, MAED-IT,MIT
// www.jakerpomperada.com / www.jakerpomperada.blogspot
// jakerpomperada@gmail.com
// Bnacolod City, Negros Occidental Philippines

#include <iostream>

using namespace std;

int main()
{
    int divisor=0, dividend=0;
    int quotient=0, remainder=0;

    cout << "\n\n";
    cout << "\tQuotient and Remainder Numbers in C++";
    cout << "\n\n";
    cout << "\tGive dividend value : ";
    cin >> dividend;

    cout << "\n";
    cout << "\tGive divisor value  : ";
    cin >> divisor;

    quotient = (dividend / divisor);
    remainder = (dividend % divisor);

    cout << "\n\n";
    cout << "\tThe Quotient Value  : " << quotient <<"\n";
    cout << "\tThe Remainder Value : " << remainder;
    cout << "\n\n";
    cout << "\tEnd of Program";
    cout << "\n\n";
}

No comments:

Post a Comment