what is the code for getting the output as
*
**
***
Answers were Sorted based on User's Feedback
Answer / gg
#include<stdio.h>
main()
{
int n,i=0,j=0;
printf("Enter an intger : ");//upto n nof *'s
scanf("%d",&n);
while(j<n)
{
for(i=0;i<=j;printf("*"),i++);
printf("\n",j++);
}
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
Answer / pooja sonawane
void main()
{
int i,j;
for(i=0;i<3;i++)
printf("\n");
for(j=0;j<i;j++)
printf("*");
}
| Is This Answer Correct ? | 2 Yes | 6 No |
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
how to find the size of the data type like int,float without using the sizeof operator?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
Explain how are 16- and 32-bit numbers stored?
How can I find out if there are characters available for reading?
what is output of the following statetment?Printf(“%x”, -1<<4); ?
what do you mean by defining a variable in our c code?
Write a function to find the area of a triangle whose length of three sides is given
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What is the use of void pointer and null pointer in c language?
when user give a number it multiply with 9 without useing '+' and '*' oprator
what is the little endian and big endian?