what is the code for getting the output as
*
**
***
Answer Posted / pooja sonawane
void main()
{
int i,j;
for(i=0;i<3;i++)
printf("\n");
for(j=0;j<i;j++)
printf("*");
}
| Is This Answer Correct ? | 2 Yes | 6 No |
Post New Answer View All Answers
What is main () in c?
How can you invoke another program from within a C program?
What are disadvantages of C language.
Explain what are the standard predefined macros?
What is string length in c?
Explain Function Pointer?
What is static and auto variables in c?
What is a constant?
Explain what is the difference between a free-standing and a hosted environment?
Can you write a programmer for FACTORIAL using recursion?
What is the purpose of & in scanf?
main() { printf("hello"); fork(); }
What is time null in c?
Is it acceptable to declare/define a variable in a c header?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none