asked 230k views
1 vote
Given a int variable named callsReceived and another int variable named operatorsOnCall write the necessary code to read values into callsReceived and operatorsOnCall and print out the number of calls received per operator (integer division with truncation will do).

asked
User Mdexp
by
7.7k points

1 Answer

3 votes

// c++ code to read the recieved calls

cout<< " Enter the calls recieved :";

cin>>callsRecieved;

cout<< " Enter operator on call : ";

cin>>operatorsOnCall;

// calculating the call per operator

calls_per_operator = callsRecieved/operatorsOnCall;

// printing the vaule.

cout<<" Calls recieved per operator are : " << calls_per_operator <<endl;

answered
User Yuvaraja
by
8.4k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.