Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace _2020_12_24_lab2
- {
- class Program
- {
- static void Copies(string s, ref string s1, int n)
- {
- for (int i = 0; i < n; i++)
- s1 += s;
- }
- static void Main(string[] args)
- {
- string s1 = "something";
- Copies("-blah", ref s1, 3);
- System.Console.WriteLine(s1);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment