Give the Output :
*
* *
* * *
* * * *
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / prasanna
int i,j;
for(i=o;i<4;i++)
{
for(j=0;j<=i;j++)
{
printf("*");
}
}
| Is This Answer Correct ? | 1 Yes | 6 No |
write a program to rearrange the array such way that all even elements should come first and next come odd
Can we use any name in place of argv and argc as command line arguments?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Which one would you prefer - a macro or a function?
What are header files? What are their uses?
how to impliment 2 or more stacks in a single dimensional array ?
What are types of preprocessor in c?
main() { float f1=10.5; double db1=10.5 if(f1==db1) printf("a"); else printf("b") }
diff .between strcture and union
Can the “if” function be used in comparing strings?
why return type of main is not necessary in linux
what is pointer?