Horje
pyramid shape in c++ Code Example
pyramid shape in c++
#include <bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin >> n ; 	
	for(int i=1 ; i <= n ; i++){
		for(int j=i ; j < n; j++){
			printf(" ");
		}
		for(int j=1 ; j <= i*2-1 ; j++){
			printf("*");
		}
		printf("\n");
		
	}
	return 0;
}

/**
   *
  ***
 *****
*******
*/




Cpp

Related
c++ main environment variables Code Example c++ main environment variables Code Example
summary a long walk to water Code Example summary a long walk to water Code Example
how to print items in arduino Code Example how to print items in arduino Code Example
rank() in c++ Code Example rank() in c++ Code Example
HOW TO TURN LINK TO BUTTON IN MVC Code Example HOW TO TURN LINK TO BUTTON IN MVC Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10