daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Jul 22nd, 2018 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Duplicates a string count times. If count is
  2. // not a positive number then the empty string
  3. // is returned.
  4. String Duplicate(String src, int count) {
  5.   String result = "";
  6.   for (int i = 0; i < count; i++) {
  7.     result += src;
  8.   }
  9.   return result;
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top