Question: Problem Statement Write a program that declares two integers named a and b . It prompts the user to enter a value for each and
Problem Statement
Write a program that declares two integers named a and b It prompts the user to enter a value for each and divides a by b Finally, it outputs the quotient and the remainder of the division.
WARNING: Be sure to add a space before and after each operator, eg write cout value; instead of cout
using namespace std;
int main
declare variable a
declare variable b
cout A: ;
cout B: ;
int quotient
;
int remainder
;
cout a b
remainder:
endl;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
