Showing posts with label Hollow. Show all posts
Showing posts with label Hollow. Show all posts

Tuesday 13 August 2013

Hollow Right Angled Triangle 4

Hollow Right Angled Triangle in C++ 4:

In this post of shapes in c language, you will find the code for constructing a Hollow top right corner right angled triangle in C++ using "*". 

Purpose of this code of shapes in c:

The basic purpose of this code is to make our visitors aware how to use simple programming tools of C++ to draw shapes in c programming language.
This code has been posted to:
  • Help our visitors in drawing shapes in c++.
  • Make them aware of the use of simple loops to create shapes.
  •  Helping them out for their different assignments to draw complex shapes.

Advantages of this code of shapes in c:

After thorough study of this code you will be able to:
  • Easily understand the use of nested loops.
  • Appropriate use of If Else conditions.
  • Make a generic code that will be able to make a triangle of any desired size(// within the size limit of the console).
  • A clear cut help in designing similar problems. 

Code:

/*              Join us at
http://shapesinc.blogspot.com 
for more codes of shapes                            
*/
#include<iostream>
using namespace std;
int main()
{
cout << "Join http://shapesinc.blogspot.com for more codes of shapes\n\n";
cout<<"CAUTION:   The input should not be other than numerical values \n\n\a";
int size=0;
cout << "Enter the size of the hollow triangle\n";
cin>>size;
for(int i=0 ; i<=size ; i++)
{
for(int j=0; j<=size; j++)
{
if(i==0)
     cout<<"* ";
else
   if(j==i || j==size)
cout<<"* ";
   else 
cout<<"  ";
}
cout<<endl;
}
return 0;
}



For more visit: triangle programs in c.

Disclaimer:

We do not appreciate the submission of our codes in your assignments.These codes are meant to help you out in designing similar problems and provide you with a sense how to deal with such problems.Shapes in c will not take any responsibility for any sort of plagiarism case if you copy pasted our code in your final assignments.

Output:


The exact output of the above code is as follows:

Right_Angle_Triangle_Shapes_in_C




Hollow Right Angled Triangle 3

Hollow Right Angled Triangle in C++ 3:

In this post of shapes in c language, you will find the code to draw complex shapes of Hollow bottom right corner right angled triangle in C++ using "*". 

Purpose of this code of shapes in c:

This code has been posted with the purpose to help our visitors to use simple c++ programming tools to make different programs in c programming language.
The main purpose of this code is to:
  1. Make the viewers aware of different techniques to create shapes.
  2. Help them out in their complex shapes problems.
  3. Provide assistance to write c++ shape program .

For more visit: triangle programs in c.

Advantages of this code of shapes in c:

After understanding this code you will be able to :
  1. Use loops in different ways.
  2. Understand the concept of nested loops.
  3. Construct generic codes for different shapes in c programming.
  4. Know to use if_else conditions properly.

Code:

/*              Join us at
          http://shapesinc.blogspot.com 
          for more codes of shapes                            
*/
#include<iostream>
using namespace std;
int main()
{
cout << "Join http://shapesinc.blogspot.com for more codes of shapes\n\n";
cout<<"CAUTION:   The input should not be other than numerical values \n\n\a";
int size=0;
cout << "Enter the size of the triangle\n";
cin>>size;
for(int i=0 ; i<=size ; i++)
{
    for(int spaces1=i ; spaces1<size ; spaces1++)
         cout<<"  ";
    for(int j=0; j<=i ; j++)
{       
         if(i==size)
cout<<"* ";
else 
if(j==0 || j==i)
cout<<"* ";
else 
cout<<"  ";
}
for(int spaces1=0 ; spaces1<i ; spaces1++) cout<<"  ";
cout<<endl;
}
return 0;
}

Disclaimer:

We do not appreciate the submission of our codes in your assignments.These codes are meant to help you out in designing similar problems and provide you with a sense how to deal with such problems.Shapes in c will not take any responsibility for any sort of plagiarism case if you copy pasted our code in your final assignments. - See more at: http://shapesinc.blogspot.com/2013/08/hollow-right-angled-triangle-in-c-4.html#sthash.Gy79gyHj.dpuf
Submission of our codes in your final assignments is not appreciated.These codes are meant to help you out in designing similar problems and provide you with a sense how to deal with such problems.Shapes in c will not take any responsibility for any sort of plagiarism case if you copy pasted our code in your final assignments.
We do not appreciate the submission of our codes in your assignments.These codes are meant to help you out in designing simil - See more at: http://shapesinc.blogspot.com/2013/08/hollow-right-angled-triangle-in-c-4.html#sthash.Gy79gyHj.dpuf
We do not appreciate the submission of our codes in your assignments.These codes are meant to help you out in designing similar problems and provide you with a sense how to deal with such problems.Shapes in c will not take any responsibility for any sort of plagiarism case if you copy pasted our code in your final assignments. - See more at: http://shapesinc.blogspot.com/2013/08/hollow-right-angled-triangle-in-c-4.html#sthash.Gy79gyHj.dpuf

Disclaimer:

We do not appreciate the submission of our codes in your assignments.These codes are meant to help you out in designing similar problems and provide you with a sense how to deal with such problems.Shapes in c will not take any responsibility for any sort of plagiarism case if you copy pasted our code in your final assignments.
- See more at: http://shapesinc.blogspot.com/2013/08/hollow-right-angled-triangle-in-c-4.html#sthash.Gy79gyHj.dpuf

Disclaimer:

We do not appreciate the submission of our codes in your assignments.These codes are meant to help you out in designing similar problems and provide you with a sense how to deal with such problems.Shapes in c will not take any responsibility for any sort of plagiarism case if you copy pasted our code in your final assignments.
- See more at: http://shapesinc.blogspot.com/2013/08/hollow-right-angled-triangle-in-c-4.html#sthash.Gy79gyHj.dpuf

Disclaimer:

We do not appreciate the submission of our codes in your assignments.These codes are meant to help you out in designing similar problems and provide you with a sense how to deal with such problems.Shapes in c will not take any responsibility for any sort of plagiarism case if you copy pasted our code in your final assignments.
- See more at: http://shapesinc.blogspot.com/2013/08/hollow-right-angled-triangle-in-c-4.html#sthash.Gy79gyHj.dpuf

Disclaimer:

We do not appreciate the submission of our codes in your assignments.These codes are meant to help you out in designing similar problems and provide you with a sense how to deal with such problems.Shapes in c will not take any responsibility for any sort of plagiarism case if you copy pasted our code in your final assignments.
- See more at: http://shapesinc.blogspot.com/2013/08/hollow-right-angled-triangle-in-c-4.html#sthash.Gy79gyHj.dpuf

Output:




We do not appreciate the submission of our codes in your assignments.These codes are meant to help you out in designing similar problems and provide you with a sense how to deal with such problems.Shapes in c will not take any responsibility for any sort of plagiarism case if you copy pasted our code in your final assignments. - See more at: http://shapesinc.blogspot.com/2013/08/hollow-right-angled-triangle-in-c-4.html#sthash.Gy79gyHj.dpuf

Right_Angled_Triangle_Shapes_In_C


Hollow Right Angled Triangle 2

Hollow Right Angled Triangle in C++ 2:

In this post of shapes in c language, you will find the code for constructing a Hollow top left right angled triangle in C++ using "*". 

Purpose of this code of shapes in c:

This code of shapes in c has been posted with the purpose to help our visitors to use simple c++ programming tools to draw complex shapes in c language.
The main purpose of this code is to:
  1. Help our users to develop a sense to come up with an optimized solution of problems .
  2. Help them out to program their assignments.
  3. Resolve their general coding related issues.

Advantages of this code of shapes in c:

After thorough study of this code you will be able to :
  1. Use the loops in different ways.
  2. Understand the concept of nested loops.
  3. Come up with a better solution of problems.
  4. Precisely use if else conditions properly.

Code:


For more visit: triangle programs in c.


Code:

/*              Join us at
http://shapesinc.blogspot.com 
for more codes of shapes                      
*/
#include<iostream>
using namespace std;
int main()
{
cout << "Join http://shapesinc.blogspot.com for more codes of shapes\n\n";
cout<<"CAUTION: The input should not be other than numerical values \n\n\a"; 
int size=0;
cout << "Enter the size of the hollow triangle\n";
cin>>size;
for(int i=0 ; i<=size ; i++)
{
for(int j=i ; j<=size ; j++)
{
if(i==0)
       cout<< "* ";
else 
if(j==i || j==size)
cout<<"* ";
       else
cout<<"  ";
}
cout<<endl;
}
return 0;
}



Disclaimer:

We do not appreciate the submission of our codes in your assignments.These codes are meant to help you out in designing similar problems and provide you with a sense how to deal with such problems.Shapes in c will not take any responsibility for any sort of plagiarism case if you copy pasted our code in your final assignments. - See more at: http://shapesinc.blogspot.com/2013/08/hollow-right-angled-triangle-in-c-4.html#sthash.Gy79gyHj.dpuf
These codes are meant to help you out in designing similar problems and provide you with a sense how to deal with such problems.Submission of our codes in your final assignments is not appreciated.Shapes in c will not take any responsibility for any sort of plagiarism case if you copy pasted our code in your final assignments.

Output:

right-angled-triangle-shapes-in-c

Hollow Right Angled Triangle 1

Hollow Right Angled Triangle in C++ 1:

In this post of shapes in c language, you will find the code for constructing a Hollow bottom left right angled triangle in C++ using "*". 

Purpose of this code of shapes in c:

The main purpose of this code is to help our visitors to understand how, to use simple programming tools of C++ to draw shapes .
The codes we post are meant to:
  • Help our visitors in designing simple shapes in c language.
  • Make them aware how to make easy shapes using loops.
  • Helping them out for their different assignments.

Advantages of this code of shapes in c:

After studying this code you will be able to:
  • Easily understand the use of nested loops.
  • Appropriate use of If Else conditions.
  • Make a generic codes to make triangles of any desired size(// within the size limit of the console).
  • A clear cut help in designing similar problems.

For more visit: triangle programs in c.

Code:

/*              Join us at
http://shapesinc.blogspot.com 
for more codes of shapes                            
*/
#include<iostream>
using namespace std;
int main()
{
cout << "Join http://shapesinc.blogspot.com for more codes of shapes\n\n";
 cout<<"CAUTION:   The input should not be other than numerical values \n\n\a";  
int size=0;
cout << "Enter the size of the hollow triangle\n";
cin>>size;
for(int i=0 ; i<=size ; i++)
{
for(int j=0 ; j<=i ; j++)
{
if(i!=size)
{
if(j==0 || j==i)
cout<< "* ";
else
cout<<"  ";
}
else if (i==size )
cout<< "* ";
}
for(int spaces=i ; spaces<size ; spaces++)
cout<<"  ";
cout<<endl;
}
}  

Disclaimer:

We do not appreciate the submission of our codes in your final assignments.These codes are meant to help you out to draw complex shapes and provide you with a sense how to deal with such problems.Shapes in c will not take any responsibility for any sort of plagiarism case if you copy pasted our code in your final assignments.




Output:




Right-Angled-Triangle-Shapes-in-c


Fan 2

Fan 2:

In this post of shapes in c you will be able to construct the code for a fan (Part 2) in C++ using "*".

Code:

/*              Join us at
http://shapesinc.blogspot.com 
for more codes of shapes                            
*/
#include<iostream>
using namespace std;
int main()
{
cout << "Join http://shapesinc.blogspot.com for more codes of shapes\n\n";
int size;
cout<< "Enter the size of fan" << endl;
cin>>size;
for(int i=0 ; i<=size ; i++)
{
for(int j=0 ; j<i ; j++)
cout<<"  ";
for(int spaces=i ; spaces<=size ; spaces++)
{
if(i==0)
cout<<"* ";
else
if(spaces==i || spaces==size)
cout<<"* ";
else 
cout<<"  ";
}
for(int j=i ; j<size ; j++)
cout<<"  ";
for(int j=0; j<=i ; j++)
{
if(i==size)
cout<<"* ";
else 
if(j==0 || j==i)
cout<<"* ";
else 
cout<<"  ";
}
cout<<endl;
}
for(int m=0 ; m<=size ; m++)
{
for(int spaces1=m ; spaces1<=size ; spaces1++)
{
if (m==0)
cout<<"* ";
else
if(spaces1==m || spaces1==size)
cout<<"* ";
else
cout<<"  ";
}
for(int n=0; n<m ; n++)
cout<<"  ";
for(int spaces1=0 ; spaces1<=m ; spaces1++)
{
if(m==0 || m==size)
cout<<"* ";
else
if(spaces1==0 || spaces1==m)
cout<<"* ";
else 
cout<<"  ";
}
cout<<endl;
}
return 0;
}



Output:


Fan_In_Shapes_In_c




Fan 1

Fan 1:

In this post of shapes in c you will be able to construct the code for a fan (Part1) in C++ using "*".

Code:

/*              Join us at
http://shapesinc.blogspot.com 
for more codes of shapes                            
*/
#include<iostream>
using namespace std;
int main()
{
cout << "Join http://shapesinc.blogspot.com for more codes of shapes\n\n";
 cout<<"CAUTION:   The input should not be other than numerical values \n\n\a";  
int size;
cout << "Enter the size of fan" << endl;
cin>>size;
for(int i=0 ; i<=size ; i++)
{
for(int j=0 ; j<=i ; j++)
{
if(i!=size)
{
if(j==0 || j==i)
cout<< "* ";
else
cout<<"  ";
}
else if (i==size )
cout<< "* ";
}
for(int spaces=i ; spaces<size ; spaces++)
cout<<"  ";
for(int j=i ; j<=size ; j++)
{
if(i==0)
cout<< "* ";
else 
if(j==i || j==size)
cout<<"* ";
else
cout<<"  ";
}
cout<<endl;
}
for(int m=0 ; m<=size ; m++)
{
for(int spaces1=m ; spaces1<size ; spaces1++)
cout<<"  ";
for(int n=0; n<=m ; n++)
{
if(m==size)
cout<<"* ";
else 
if(n==0 || n==m)
cout<<"* ";
else 
cout<<"  ";
}
for(int spaces1=0 ; spaces1<m ; spaces1++)
cout<<"  ";
for(int n=m; n<=size; n++)
{
if(m==0)
cout<<"* ";
else
if(n==m || n==size)
cout<<"* ";
else 
cout<<"  ";
}
cout<<endl;
}
return 0;
}



Output:










Fan_In_Shapes_In_C