#include<iostream>
using namespace std;
int main(){
for(int i=1; i<=5; i++){
for(int j=1; j<=i; j++){
cout<<" ";
}
for(int k=5; k>=i; k--){
cout<<"*";
cout<<" ";
}
cout<<endl;
}
}
using namespace std;
int main(){
for(int i=1; i<=5; i++){
for(int j=1; j<=i; j++){
cout<<" ";
}
for(int k=5; k>=i; k--){
cout<<"*";
cout<<" ";
}
cout<<endl;
}
}
No comments:
Post a Comment
Thanks For Visiting Here...!! I will Reply you as soon as possible.