code snippet for creating a pyramids triangle
ex
1
2 2
3 3 3
Answer Posted / manvi
main()
{
int i,j,n;
printf("enter the limit");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=0;j<i;j++)
{
printf("%d",i);
}
printf("\n");
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What is the difference between malloc calloc and realloc in c?
Explain how can I write functions that take a variable number of arguments?
What are the advantages of external class?
When was c language developed?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
Explain how can I pad a string to a known length?
What are the benefits of organizational structure?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
What is c language used for?
Wt are the Buses in C Language
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
Explain what are the different file extensions involved when programming in c?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above