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
Define Spanning-Tree Protocol (STP)
What are # preprocessor operator in c?
What is typeof in c?
What is sizeof array in c?
When should you use a type cast?
What is a static function in c?
Explain modulus operator. What are the restrictions of a modulus operator?
Explain how can I convert a string to a number?
How can type-insensitive macros be created?
What does *p++ do? What does it point to?
What are the similarities between c and c++?
Is exit(status) truly equivalent to returning the same status from main?
What is the best way of making my program efficient?
How do you list files in a directory?
What is a wrapper function in c?