Answer Posted / sakthipriya
#include<stdio.h>
#include<conio.h>
void main()
{
int n=4, c, k, space, count = 1;
space = n;
for ( c = 1 ; c <= n ; c++)
{
for( k = 1 ; k < space ; k++)
printf(" ");
for ( k = 1 ; k <= c ; k++)
{
printf("*");
if ( c > 1 && count < c)
{
printf(" ");
count++;
}
}
printf("\n");
space--;
count = 1;
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How old is c programming language?
What is c language in simple words?
What is sizeof return in c?
What is volatile keyword in c?
largest Of three Number using without if condition?
What are the types of pointers?
What are the loops in c?
How can I do serial ("comm") port I/O?
How do you write a program which produces its own source code as output?
What is linear search?
Stimulate calculator using Switch-case-default statement for two numbers
What is the mean of function?
write a program in c language to print your bio-data on the screen by using functions.
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
Can include files be nested? How many levels deep can include files be nested?