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 #include iomanip?
Is java as fast as c++?
What is difference between class and structure in c++?
Explain the concept of friend function in c++?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What's the best free c++ profiler for windows?
Write about the use of the virtual destructor?
Why is it necessary to use a reference in the argument to the copy constructor?
When are exception objects created?
What is the keyword auto for?
What is c++ used for in games?
What are static type checking?
Mention the ways in which parameterized can be invoked. Give an example of each.
What is the main purpose of overloading operators?
What is the hardest coding language to learn?