Answer to Question #310302 in C++ for Christine Traya

Question #310302

create a program that will ask the user to give a number for the divided and the divisor and then program will compute and display the quotient and its remainder on the screen





// quotient.cpp




// Author: Mr jake R. pomperada, BSCS, MAED- IT




// Date: august 14, 2018 Tuesday




// Location: Bacolod City, Negros occidental




// Website: http://www.jakerpompereda.com

1
Expert's answer
2022-03-13T08:09:31-0400

Here is my program:

int main()
{
    double divided;
    double divisor;
    double result;
    cout << "Enter the divided: " << endl;
    cin >> divided;
    cout << "Enter the divisor: " << endl;
    cin >> divisor;
    result = divided / divisor;
    cout << "Quotient and its remainder = " << result << endl;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment