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 |
Can you please explain the difference between syntax vs logical error?
how can i sort numbers from ascending order and descending order using turbo c..
write a program to reverse the words in the sentence.NOTE:not reverse the entire string but just the occurance of each word
#‎include‬<stdio.h> void main() { int i; for(i=5;0;i++) { printf("%d",i); } }
what is the output of the program?? #include<stdio.h> main ( ) { int a=010,sum=0,tracker: for(tracker=0;tracker<=a;tracker++) sum+=tracker; printf(ā %d\nā,sum); } what is the difference between a=10 and a=010??
What is openmp in c?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
Can you think of a way when a program crashed before reaching main? If yes how?
main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 Answers Vector, Vector India,
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
What is call by reference in functions?
What are two dimensional arrays alternatively called as?