Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a C program to get the desired output.


1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
.
.
.
1 n..............n 1
Note: n is a positive integer entered by the user.

Answer Posted / ch.mahathi

could anyone please assist me in getting the output in the following way?

For example, if you have entered a pin number like 532211 as the input to the program , then the output should be like this



(5)+(5+3)+(5+3+2)+(5+3+2+1)+(5+3+2+2+1)+(5+3+2+2+1+1)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe newline escape sequence with a sample program?

1114


Do pointers need to be initialized?

1070


What is line in c preprocessor?

1046


What is a nested loop?

1114


What is the basic structure of c?

1076


Explain what is the stack?

1091


What are the rules for identifiers in c?

1064


Is c pass by value or reference?

1031


how can f be used for both float and double arguments in printf? Are not they different types?

1060


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1135


Differentiate between declaring a variable and defining a variable?

1029


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

1063


What is structure of c program?

1155


Explain what are the different file extensions involved when programming in c?

1107


What are dangling pointers in c?

1214