If i want to insert the same character in a string a number of times that the user enters For example:
int n=30; string s=""; for(int i=0; i<n; i++) { s=s+"M"; } is there a more efficient way to make the same process in less time? because if n is a big number it will take the program quite long time to run