123 Eng

Engineering the engineers™


Latest Jobs   Forum Map

 


Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

   Computer Science / IT
   Electronics
   Electrical
   Mechanical
   Chemical
   Civil

   CAT / MBA

   GMAT / Foreign MBA
Latest Jobs

Engineering Jobs / Technical Jobs
Management Jobs

Sitemap
Terms of use

Displaying  Source Code(s)  
 

 
program to generate the priramid of numbers

--------------------------------------------------------------------------------

Description : Not Specified

/*to generate a primid of numbers*/

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,k,s,n;
printf("

ENTER THE NO OF ROWS<BR>);
scanf("%d",&n);

for(i=1,s=n;i<=n;i++,s--)
{
for(k=1;k<s;k++)
printf(" ");
for(j=1;j<=i;j++)
printf("%d ",j);
printf("

);

}
getch();
}
 

 

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved copyright 123ENG