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 can I change their mode to binary?
How can I make it pause before closing the program output window?
What is use of null pointer in c?
Why do we use int main instead of void main in c?
What is the difference between exit() and _exit() function?
How can I sort more data than will fit in memory?
What are terms in math?
What is character constants?
How important is structure in life?
Find MAXIMUM of three distinct integers using a single C statement
How can a program be made to print the name of a source file where an error occurs?
Can you pass an entire structure to functions?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
What is the difference between typedef struct and struct?
explain what is a newline escape sequence?