Hello everyone, am new to C++, and i have this question : write a program that prompts the user to enter a positive integer number and a character. The programe prints three triangles of stars separated by the entered character, Each trangle should have a number of star lines equal to the entered integer.
And this is my code:
#include<iostream>
using namespace std;
int main()
{
int row;
char ch;
int i,star;
cout<<"Enter number of lines: ";
cin>>i;
cout<<"Enter a character separator:"<<'\t';
cin>>ch;