what is the code for getting the output as
*
**
***
Answer Posted / anvesh
main()
{
printf("*\n**\n***);
}
OR
main()
{
int n,i;
while(n<3)
{
i=0;
while(i<=n)
{printf("*");i++;}
printf("\n); n++;
}
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Why we use conio h in c?
What is hash table in c?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
How many header files are in c?
What is the difference between mpi and openmp?
How to draw the flowchart for structure programs?
What is a far pointer in c?
What are lookup tables in c?
Explain the difference between the local variable and global variable in c?
Explain how does free() know explain how much memory to release?
Can we access array using pointer in c language?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
What is the difference between exit() and _exit() function in c?
What is the difference between procedural and functional programming?
Stimulate calculator using Switch-case-default statement for two numbers