write a c++ program that gives output
4
3 4
2 3 4
1 2 3 4 using looping statement
Answer Posted / sandeep mannnarakkal
void printSeries(int nNum)
{
for ( int i = 0 ; i < nNum ; i ++)
{
for ( int j = nNum -i ; j <= nNum ; j ++)
{
cout << j;
}
cout << endl;
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the role of copy constructor in copying of thrown objects?
What is the use of class in c++?
Is c++ double?
What is the difference between structure and class?
Why pointer is used in c++?
What are c++ storage classes?
Explain public, protected, private in c++?
What is the this pointer?
What is while loops?
Differentiate between late binding and early binding. What are the advantages of early binding?
Explain polymorphism?
Explain about Virtual Function in C++?
Which should be more useful: the protected and public virtuals?
What is an adjust field format flag?
How do you declare A pointer to function which receives an int pointer and returns a float pointer