Write a program in C++ to print the numbers in a specific pattern with the flowchart
In this tutorial, we will learn about the followings;
- Flowchart of the program to print the numbers in a specific pattern
- Program to print the numbers in a specific pattern in C++ CPP
- Program to print the numbers in a specific pattern in C
Flowchart of the program to print the numbers in a specific pattern

Program to print the numbers in a specific pattern in C++
#include <iostream> #include <conio.h> using namespace std; int main() { int i, j, k = 0; for (i = 0; i <= 10; i++) { for (j = 1; j < i; j++) { cout << k; k++; } cout << endl; } getch(); return 0; }
Output

Program to print the numbers in a specific pattern in C
#include<stdio.h> #include<conio.h> int main() { int i,j, k=0; for(i=0;i<=10;i++) { for(j=1;j<i;j++) { printf("%d",k); k++; } printf("\n"); } getch(); }
Output
