Advertisement
ZhilinskiyG

Task 0_07

Feb 4th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout << "Input the number of  candies\n";
  7.     int a;
  8.     cin >> a;
  9.     cout << "Input the number of classes\n";
  10.     int b;
  11.     cin >> b;
  12.     cout << "Input the number of students in one class\n";
  13.     int c;
  14.     cin >> c;
  15.     cout << a / (b*c) << endl;
  16.     return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement