Write a program to produce the following output in c language?
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1

Answer Posted / kalaiarasan

#include<stdio.h>
#include<math.h>
main()
{
unsigned long int k=11;
for(i=0;i<5;i++)
printf("\n%u\n",pow(k,i));
}

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are keywords c?

613


Differentiate between null and void pointers.

643


What are the advantages of the functions?

614


What is meant by recursion?

640


What is the difference between malloc calloc and realloc in c?

657






in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

606


What are the advantages and disadvantages of pointers?

590


Why & is used in scanf in c?

635


difference between Low, Middle, High Level languages in c ?

1640


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

1814


explain what are pointers?

631


What are all different types of pointers in c?

589


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1474


What is double pointer?

565


How can I write functions that take a variable number of arguments?

635