what is the code for getting the output as
*
**
***
Answer Posted / sourisengupta
void main()
{
int i,j;
for(i=0;i<3;i++){
for(j=0;j<i;j++){
printf("*");
printf("\n");
}
}
}
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
In C language, a variable name cannot contain?
Is c object oriented?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Which function in C can be used to append a string to another string?
What is putchar() function?
write a program to generate address labels using structures?
Explain what is the difference between a string and an array?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
Are comments included during the compilation stage and placed in the EXE file as well?
What is variable declaration and definition in c?
What is the use of bitwise operator?
What is the scope of static variable in c?
What is meant by inheritance?
How we can insert comments in a c program?
What are the two types of structure?