-->

Header Ads

Pyramid Program 3

C Program:


#include<stdio.h>

#include<conio.h>

void main()

{

int a,b,k=0;

clrscr();

for(a=0;a<7;a++)

{

for(b=0;b<8;b++)

{

printf("%d",k);

//k++;

}

printf("\n");

}

getch();

}




Output of c program:


No comments

Powered by Blogger.