C++ program to print half Pyramid of numbers
#include <iostream> using namespace std; int main() { int i,j,rows; cout<<"Enter the number of rows: "; cin>>rows; for(i=1;i<=rows;++i) { for(j=1;j<=i;++j) { cout<<j<<" "; } cout<<"\n"; } return 0; } /* OUTPUT: Enter the number of rows: 5 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 */
Different ways of Putting the above question
- C++ program to print patterns of numbers
- program to print pyramid of numbers
- C++ Program to print half pyramid as using numbers as shown in figure below
- C++ Program To display the half pyramid of * stars numbers and character
- C++ program to print patterns of numbers and stars
- Program to print half Pyramid
- C Programming: half Pyramid
- A program to print the half pyramid
- Program to print pyramid of stars * – C Programming Examples
- C++ program to print half patterns of numbers and stars
- C++ Tutorial – A Star half pyramid and String triangle using for loops
- C++ Star Pyramid – C++ Forum
- C++ program to print patterns, half pyramids of numbers and stars
- C++ Programming: Reverse Star Pyramid
- C++ Programming Source Code to Print Pyramid and Triangles
- Program to print pyramid of stars
- C++ Tutorial – A Star pyramid and String triangle using for loops
- C++ Program to Print Star Pyramid Triangle, C++
- C++ programs to print pyramid patterns
- C++ Program to print star pattern pyramid
- C++ Programming Code To Create Pyramid and Structure
- Print pyramids and diamonds in C Language – C and C++
- C++ Simple Programs And Examples
- C++ – Hello World Program
- C++ – Simple calculator
- C++ – Even and Odd
- C++ – Swap two numbers
- C++ – Prime Number
- C++ – Find Perfect Number
- C++ – Factorial of Number
- C++ – Fibonacci Series
- C++ – Human Resource Management Program
- C++ – Calculate number of characters, words, sentences
- C++ – Subtract two Strings
- C++ – Processing of the Students structure
- C++ – Program with Matrices
- C++ – Calculate Equation
- C++ – Arrange Numbers in Ascending order
- C++ – Check Armstrong Number
- C++ – HCF and LCM
- C++ – Square Root of a Number
- C++ – Cube Root of a Number
- C++ – ASCII Code for Characters and numbers
- C++ – Check Palindrome Number
- C++ – Bubble sort
- C++ – Random Number Generator
- C++ – Sum of ODD Numbers in the Given Range
- C++ – Display current date and time
- Formula Based Programs
- C++ – Leap Year
- C++ – Surface Area and volume of cone
- C++ – Solve Quadratic equation
- String Based Programs
- C++ – String into Upper case or lower case
- C++ – Concatenate Strings
- Array Based Programs
- C++ – Program with Matrices
- Print Any Patterns
- C++ – Print 5 rows of 10 Stars (*)
- C++ – Half Pyramid of Stars (*)
- C++ – Half Pyramid of numbers
- C++ – Print Triangle of Stars
- C++ – Display Reverse pyramid.
- C++ – Print Alphabet Pattern
- C++ – Diamond of Star
- C++ – Pascal Triangle
- C++ – Floyd Triangle
- C++ Conversion
- C++ – Convert decimal to Hexadecimal
- C++ – Decimal to Binary
- C++ Sorting algorithms & Techniques
- C++ – Bubble Sort
- C++ – Insertion Sort
- C++ – Selection Sort
- C++ – Merge Sort
- C++ – Quick Sort
- C++ Handling Files
- C++ – How to get Current Directory in Linux/Windows
- C++ – How Create a Text File and Write in It
1234567
234567
34567
4567
567
67
7
can anyone do this ?
plz help me with this