For this Question: Print a right angled triangle of stars of given height N as shown in example.The input contains a single integer N.

<b>Constraints:-</b>
1 &le; N &le; 10Print the Right angled triangle of height N.Sample Input:-
3

Sample Output:-
*
**
***

Sample Input:-
4

Sample Output:-
*
**
***
****, I have written this Solution Code: #include <iostream>
using namespace std;
int main(){
int n;
cin>>n;
for(int i=0;i<n;i++){
for(int j=0;j<i+1;j++){
cout<<'*';}
cout<<endl;
}}, In this Programming Language: C++, Now tell me if this Code is compilable or not?