Program To Display The Numeric Values In The Form Of A Pyramid
/* Program To Display The Numeric Values In The Form Of A Pyramid Upto The Given Number Of Rows As Given Below 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 . . . . . . . . . . . . . . */ #include
#include
void main() { int i,j,k,s,n,c=1; clrscr(); printf("\nEnter number of rows\n\n"); scanf("%d",&n); for(i=1;i<=n;i++) { for(j=1;j<=(n-i);j++) printf(" "); s = 2*i-1; for(k=0;k
Please send comments to
vgdarur.javafive@blogger.com
Copyright © 2008 - iForeRunner.com
http://www.iforerunner.com/