Advertisement
ZhilinskiyG

Task 0_09

Feb 4th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "stdafx.h"
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout << "Input the number of the servomotors\n";
  7.         int N;
  8.         cin >> N;
  9.     cout << "Input the number of the servomotors for one robot\n";
  10.     int K;
  11.     cin >> K;
  12.     cout << "Input the number of the robots you that can make\n";
  13.     cout << N / K << endl;
  14.     cout << "Input the number of detals will remain\n";
  15.     cout << N%K << endl;
  16.    return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement