Education for ALL
Pages
DL
MP
MC
COA
ES
NM
CG
OS
IP
DC
CN
CNS
Cryptography
C
C++
DSA
DBMS
SAD
SE
SPM
IoT
Blockchain
DS
AI
ML
C Program to Print Pyramids and Triangles using LOOPS
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
for(i=1;i<=9;i++)
{
for(j=1;j<=i;j++)
printf("%d\t",j);
printf("\n");
}
getch();
}
Output:
C Program to Print Pyramids and Triangles using LOOPS >>
No comments:
Post a Comment
Newer Post
Older Post
Home
No comments:
Post a Comment