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 are disadvantages of pointers?
What is the main purpose of c++?
What is meant by iomanip in c++?
What is the full form of c++?
Can you please explain the difference between overloading and overriding?
Differentiate between an array and a list?
What is c++ coding?
What is namespace & why it is used in c++?
What is namespace std; and what is consists of?
an integer constant must have atleast one a) character b) digit c) decimal point
What are the extraction and insertion operators in c++? Explain with examples.
What is size_type?
Which is the best c++ software?
What is token c++?
What can c++ be used for?