Program to print the numbers in a specific pattern in C++ CPP and C 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++ CPPÂ
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#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

Program to print the numbers in a specific pattern in C
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#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
