PROGRAM TO PRINT STAR PATTERN (Right Angled Triangle) IN C++ Using Iostream February 21, 2015 Get link Facebook X Pinterest Email Other Apps First: #include <iostream> #include <conio.h> using namespace std; int main(){ int i,j; for(i=1; i<=5; i++){ cout << "\n"; for(j=1; j<=i; j++){ cout << "*";}} getch(); return 0; } Output: Comments
Comments
Post a Comment