C program to print the number pattern. 1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
C Programming Language Loop control in C Language (Article) Loop control in C Language (Program)
2935Program:
#include int main() { int i=1,j; while (i <= 5) { j=1; while (j <= i ) { printf("%d ",j); j++; } printf("\n"); i++; } return 0; }
Output:
1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Press any key to continue . . .
Explanation:
This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.