Alexa has n candies and m number of students in her class. Write a C++ program to input the number of candies and the number of students from Alexa and print the number of candies distributed to each...


Alexa has n candies and m number of students in her class. Write a C++ program to input the number of candies and the number<br>of students from Alexa and print the number of candies distributed to each student if Alexa distributes an equal number of<br>candies to all students until the number of remaining candies is less than the number of students. Also, print the number of<br>candies left with Alexa after distributing all the candies.<br>

Extracted text: Alexa has n candies and m number of students in her class. Write a C++ program to input the number of candies and the number of students from Alexa and print the number of candies distributed to each student if Alexa distributes an equal number of candies to all students until the number of remaining candies is less than the number of students. Also, print the number of candies left with Alexa after distributing all the candies.

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here