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
write a program to copy the string using switch case?
What are the advantages of using linked list for tree construction?
Write a program to print ASCII code for a given digit.
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
What is struct node in c?
Explain what are multidimensional arrays?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Explain built-in function?
What are c preprocessors?
What is dynamic variable in c?
What is the meaning of && in c?
Can main () be called recursively?
what are # pragma staments?
What is volatile c?
What is the ANSI C Standard?