C
Programming and Technical
Programming
Database
write a program that display numbers in pyramid order
Read Solution (Total 4)
-
- #include
#include
void main()
{
int i,j,k,n;
clrscr();
printf("enter number");
scanf("%d",&n);
for(i=0;i - 8 years agoHelpfull: Yes(8) No(10)
- //code compiled in GCC compiler
#include
void main()
{
int i,j,k,n;
printf("n=?n");
scanf("%d",&n);
for(i=1;i0;j--)
if(j>i)
printf(" ");
else
printf("%d ",i);
printf("n");
}
}
/* o/p should like
1
2 2
3 3 3
.
.
.
n n n n n n n.... - 7 years agoHelpfull: Yes(2) No(0)
- #include
int main() {
int i, j;
int count = 1;
for (i = 0; i - 8 years agoHelpfull: Yes(1) No(0)
main()
{
int i,j
for(i=0;i- 8 years agoHelpfull: Yes(0) No(0)
C Other Question