emon's blog
স্বপ্নবাজ এক তরুনের মুক্ত চিন্তাধারা
Friday, December 30
//c program for piramid//
#include
int main()
{
int counter,x,y,z;
counter=0;
for(x=15;x>=1;x--)
{
for(y=1;y<=x;y++)
{
printf(" ");
}
counter=counter+1;
for(z=1;z<=counter;z++)
{printf("* ");}
printf(" \n");}
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment