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 "*".
For more visit: triangle programs in c.
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:
The main purpose of this code is to:
- Help our users to develop a sense to come up with an optimized solution of problems .
- Help them out to program their assignments.
- 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 :
- Use the loops in different ways.
- Understand the concept of nested loops.
- Come up with a better solution of problems.
- Precisely use if else conditions properly.
Code:
For more visit: triangle programs in c.
Code:
/* Join us athttp://shapesinc.blogspot.comfor 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";cout << "Enter the size of the hollow triangle\n";
int size=0;cin>>size;for(int i=0 ; i<=size ; i++){for(int j=i ; j<=size ; j++){if(i==0)cout<< "* ";elseif(j==i || j==size)cout<<"* ";elsecout<<" ";}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.
0 comments:
Post a Comment