Advertisement
ZhilinskiyG

Task 0_08

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