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 123 and 0123 in c?
How many levels of pointers can you have?
Explain 'far' and 'near' pointers in c.
What is file in c language?
Explain what are its uses in c programming?
How can I implement sets or arrays of bits?
Can you please explain the difference between exit() and _exit() function?
Is c is a low level language?
What is include directive in c?
What is the purpose of type declarations?
How do you define CONSTANT in C?
Is it better to use a macro or a function?
What is const and volatile in c?
How can I change their mode to binary?
Explain indirection?