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
Is there a built-in function in C that can be used for sorting data?
What is the difference between far and near ?
What is the argument of a function in c?
Is fortran faster than c?
difference between native and cross compilers
Which is an example of a structural homology?
What is the best style for code layout in c?
How #define works?
I need testPalindrome and removeSpace
#include
What is a floating point in c?
What is the use of putchar function?
In which header file is the null macro defined?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
What is the usage of the pointer in c?
Explain what is the difference between the expression '++a' and 'a++'?