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

Can we assign integer value to char in c?

619


Can you write the function prototype, definition and mention the other requirements.

666


Explain what is wrong with this program statement?

626


Explain how do you search data in a data file using random access method?

702


How do you declare a variable that will hold string values?

673






What is the difference between declaring a variable and defining a variable?

726


By using C language input a date into it and if it is right?

576


What is operator promotion?

635


How can I discover how many arguments a function was actually called with?

637


How to write a code for reverse of string without using string functions?

1583


I heard that you have to include stdio.h before calling printf. Why?

592


write a program in c language to print your bio-data on the screen by using functions.

6255


What is a structure in c language. how to initialise a structure in c?

613


Explain the use of 'auto' keyword

683


What is c preprocessor mean?

797