simple For loop please help
I need help creating a For loop that prints a string. it prints the char a number of times. e.g.( & and u want to print it 3 times '&&&'). I dont necessarily know how to do it :( as you can see im lost on the loop
Code:
#include <iostream>
using namespace std;
int main()
{
char ch;
int n;
cout << "This program takes the characters given and display them a given amout of times.\n";
cout << "Please enter in a character you would like to use: \n";
cin >> ch;
cout << "How many times would you like to show this character: ";
cin >> n;
int n = 0;
for (char ch = 0; ch < 0; ch++)
cout << ch << ' ';
}