what is the code for getting the output as
*
**
***
Answer Posted / babitha
# include <Stdio.h>
# include <conio.h>
# include <string.h>
void main()
{
int j,i,n;
scanf("%d",&n);
for (i=0;i<=n;i++)
{
for(j=0;j<i;j++)
printf("*");
printf("\n");
}
getch();
}
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Can you apply link and association interchangeably?
What is the difference between printf and scanf in c?
What does c mean in standard form?
What are the 32 keywords in c?
Implement bit Array in C.
Differentiate between Macro and ordinary definition.
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
Can we change the value of static variable in c?
What are the keywords in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
Explain what is the use of a semicolon (;) at the end of every program statement?
Explain how can I manipulate strings of multibyte characters?
What is the use of clrscr?
explain what are actual arguments?