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
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
What is the symbol indicated the c-preprocessor?
What are the types of data types and explain?
Explain the advantages of using macro in c language?
Differentiate between full, complete & perfect binary trees.
What is the use of parallelize in spark?
Under what circumstances does a name clash occur?
Dont ansi function prototypes render lint obsolete?
Is array name a pointer?
Can you assign a different address to an array tag?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
Why do we use header files in c?
What is the use of #define preprocessor in c?
Is a pointer a kind of array?