Answer to Question #310320 in C++ for christine traya

Question #310320

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-12T12:46:16-0500
using namespace std;


/*
	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
*/


int main()
{
	int num,divisor;
	
	cout<<"\n\tEnter a number: "; cin>>num;
	cout<<"\n\tEnter divisor : "; cin>>divisor;
	
	cout<<"\n\n\tQuotient : "<<num/divisor;
	cout<<"\n\n\tRemainder: "<<num%divisor;
	
	return(0);
}

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