Display Pattern:
1
2 3
4 5 6 7
8 9 10 11 12 13 14 15
…

Answer Posted / yana

listing program c++ 1,1,3,2,5,7,3,9,11,4,13,15

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

find level of following tree (state, parent) " J,D I,D H,C E,B F,B G,C B,A D,A C,A A,& K,E L,E L,F M,F N,G O,H P,I P,H Q,I R,J S,K U,P T,L

1996


write a program that creates a sequenced array of numbers starting with 1 and alternately add 1 and then 2 to create the text number in the series , as shown below. 1,33,4,6,7,9,............147,148,150 Then , using a binary search , searches the array 100 times using randomly generated targets in the range of 1 to 150

3259


create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file

2207


write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used

4295


Performance Algorithm A performs 10n2 basic operations and algorithm B performs 300 lg n basic operations. For what value of n does algorithm B start to show its better performance?

7325






i don't know about working of nested for loop can any one help me

1785


Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.

4567


Code for Small C++ Class to Transform Any Static Control into a Hyperlink Control?

2552


1+1/2!+1/3!+...+1/n!

1936


how to write a program that opens a file and display in reverse order?

2558


write a function that allocates memory for a single data type passed as a parameter.the function uses the new operator and return a pointer to the allocated memory.the function must catch and handle any exception during allocation

2389


Teta-Omeg-Big-Oh Show that f(n) = n2 + 3n3 is ;(n3).

3183


How to swap two ASCII numbers?

2436


What output does the following code generate? Why? What output does it generate if you make A::Foo() a pure virtual function? class A { A() { this->Foo(); } virtual void Foo() { cout << "A::Foo()" << endl; } }; class B : public A { B() { this->Foo(); } virtual void Foo() { cout << "A::Foo()" << endl; } }; int main(int, char**) { A objectA; B objectB; return 0; }

634


how to take time as input in the format (12:02:13) from user so that controls remains between these columns?

1806