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
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Which function in C can be used to append a string to another string?
how to make a scientific calculater ?
Can we replace the struct function in tree syntax with a union?
What is the use of typedef in structure in c?
What are the different types of endless loops?
What do you mean by keywords in c?
What does c mean in basketball?
What is pragma c?
What is the value of uninitialized variable in c?
Explain void pointer?
What is the difference between malloc() and calloc()?
How can I do peek and poke in c?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
Write a program to reverse a linked list in c.