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
What are the different types of control structures in programming?
Why can arithmetic operations not be performed on void pointers?
What are the 32 keywords in c?
What is a example of a variable?
What is wrong with this initialization?
What is the difference between array and pointer?
What is character constants?
What are inbuilt functions in c?
Is c high or low level?
develop algorithms to add polynomials (i) in one variable
What is the use of getch ()?
program for reversing a selected line word by word when multiple lines are given without using strrev
How can you draw circles in C?
Can a variable be both constant and volatile?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }