- Messages
- 14
- Reaction score
- 1
- Points
- 18
#include <iostream>
using namespace std;
int main()
{
int Bow_tie;
cout<<"\t\tBow Tie\n"<<endl;
cout<<" Enter a Bow Tie number: ";
cin>>Bow_tie;
int column = Bow_tie * 2;
int space = 2;
for(int index = 1; index <= Bow_tie; index++)
{
for(int index1 = 0; index1 < index; index1++)
cout<<"\3";
column = column - space;
for(int index2 = 0; index2 < column; index2++)
cout<<" ";
for(int index3 = 0; index3 < index; index3++)
cout<<"\3";
cout<<endl;
}
column = 0;
for(int a = 1; a < Bow_tie; a++)
{
for(int x = Bow_tie; x > a; x--)
cout<<"\3";
column = column + space;
for(int y = 0; y < column; y++)
cout<<" ";
for(int z = Bow_tie; z > a; z--)
cout<<"\3";
cout<<endl;
}
cin.get();
return 0;
}
using namespace std;
int main()
{
int Bow_tie;
cout<<"\t\tBow Tie\n"<<endl;
cout<<" Enter a Bow Tie number: ";
cin>>Bow_tie;
int column = Bow_tie * 2;
int space = 2;
for(int index = 1; index <= Bow_tie; index++)
{
for(int index1 = 0; index1 < index; index1++)
cout<<"\3";
column = column - space;
for(int index2 = 0; index2 < column; index2++)
cout<<" ";
for(int index3 = 0; index3 < index; index3++)
cout<<"\3";
cout<<endl;
}
column = 0;
for(int a = 1; a < Bow_tie; a++)
{
for(int x = Bow_tie; x > a; x--)
cout<<"\3";
column = column + space;
for(int y = 0; y < column; y++)
cout<<" ";
for(int z = Bow_tie; z > a; z--)
cout<<"\3";
cout<<endl;
}
cin.get();
return 0;
}