2011-10-06T11:27:06-04:00
Program that display an inverted triangle using nested for loop.
Please use basic functions only.. thanks
1
2011-10-18T08:26:58-0400
#include "stdafx.h" #include "iostream" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int size; int z; cout<<"Input size of triangle plz:"<<endl; cin>>size; z = size; while(size) { & for (int i=0; i<size; i++) & { & & cout<<"* "; & } & cout<<endl; & size--; & for (int p = size; p<z; p++) // from Ukraine with love :) & { & cout<<" "; & } } system("pause"); return 0; }
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS !
Learn more about our help with Assignments:
C++
Comments