Advertisement
STANAANDREY

bac 4/19/2022

Apr 19th, 2022 (edited)
885
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int multiplu(int n) {
  6.     int r = n;
  7.     while (sqrt(r) != (int)sqrt(r)) {
  8.         r += n;
  9.     }
  10.     return r;
  11. }
  12.  
  13. int main() {
  14.     cout << multiplu(72) << endl;
  15.     return 0;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement