How to make a right triangle shape in c++


Output :



Code Picture :

Source Code :

#include <iostream>
using namespace std;

int main() {
for(int i=0;i<10;i++){
for(int j=0;j<=i;j++){
cout<<"*";
}
cout<<endl;
}

return 0;
}

No comments:

Post a Comment