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 |
What does it mean when a pointer is used in an if statement?
what will be the output of this program........ main() { int a=2,b=4,c=6; printf("%d"); } why it gives the value of third variable.
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
What is null pointer constant?
How to implement call back functions ?
What is the difference between strcpy() and memcpy() function in c programming?
What are the two types of structure?
how to count no of words,characters,lines in a paragraph.
Can a file other than a .h file be included with #include?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
What is bash c?
enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; void main() { int i =0; if( i == sunday) { printf("%d",i); } } what would be the output?