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
Tell me difference between constant pointer and pointer to a constant.
Which programming language should I learn first?
Define pure virtual function?
What is #include iostream in c++?
Write about the retrieval of n number of objects during the process of delete[]p?
What is decltype c++?
What is data structure in c++?
What is auto type c++?
Is it possible to provide default values while overloading a binary operator?
What data encapsulation is in c++?
What does I ++ mean in c++?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
What is using namespace std in cpp?
Define private, protected and public access control.
Can we get the value of ios format flags?