a company donates 935 pencils to a school these are divided equally evenly among 9 classrooms rest are given to library. Write a program in C ++ to print how many pencils were donated to each class and how many pencils library got.
Answers
Answered by
0
Answer:
#include <iostream>
using namespace std;
int main() {
int nop = 935 , noc = 9;
cout << "The number of pencils is " << nop << endl;
cout << "The number of classes is " << noc << endl;
cout << "The number of pencils each class will recieve is " << nop/noc;
return 0;
}
Explanation:
Similar questions