Output for following program using for loop only
*
* *
* * *
* * * *
* * * * *
Answer Posted / sjyamsunderreddy.beemudi
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("*");
}
printf(\n);
}
getch();
}
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How does placing some code lines between the comment symbol help in debugging the code?
What's a good way to check for "close enough" floating-point equality?
How are structure passing and returning implemented?
How #define works?
How does pointer work in c?
What is the difference between int main and void main in c?
How do you list files in a directory?
Sir i need notes for structure,functions,pointers in c language can you help me please
What is getch () for?
Is it valid to address one element beyond the end of an array?
What is the significance of scope resolution operator?
Where are the auto variables stored?
What is meant by 'bit masking'?
how logic is used
Why does notstrcat(string, "!");Work?