what is the code for getting the output as
*
**
***
Answer Posted / 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 |
Post New Answer View All Answers
What is the use of sizeof?
Which of these functions is safer to use : fgets(), gets()? Why?
How can I call a function with an argument list built up at run time?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
What are the advantages of using new operator as compared to the function malloc ()?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
What is use of null pointer in c?
What are header files? What are their uses?
What is the meaning of c in c language?
Explain how are 16- and 32-bit numbers stored?
What is array in c with example?
How important is structure in life?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
how do you execute a c program in unix.
How can I change the size of the dynamically allocated array?