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
What is an array in c?
what is the different bitween abap and abap-hr?
Explain what is the benefit of using const for declaring constants?
What is the purpose of main() function?
How can I handle floating-point exceptions gracefully?
what are the facialities provided by you after the selection of the student.
what are non standard function in c
What is derived datatype in c?
Is a pointer a kind of array?
Explain the difference between call by value and call by reference in c language?
Explain what is the difference between the expression '++a' and 'a++'?
Define the scope of static variables.
How do you declare a variable that will hold string values?
How to write a code for reverse of string without using string functions?
How can I copy just a portion of a string?