Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Triangulo Isosceles
- #include<iostream>
- using namespace std;
- void t_isosceles(int);
- int main()
- { int n;
- cin>>n;
- t_isosceles(n);
- }
- #include<iostream>
- using namespace std;
- void t_isosceles(int n){
- for(int i=1 ; i<=n ; i++){
- for(int j=n-i ; j>0 ; j--){
- cout<<"-";
- }
- for(int j=0 ; j<2*i-1 ; j++){
- cout<<"*";
- }
- cout<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement