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
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;
}
Comments
Leave a comment