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 buffering in c++?
What is helper in c++?
Are strings mutable in c++?
What is a float in c++?
Tell me what are static member functions?
What is a Default constructor?
What is pure virtual function?
What are the two types of comments?
Program to check whether a word is a sub-string or not of a string typed
How can you create a virtual copy constructor?
Explain the register storage classes in c++.
Are vectors faster than arrays?
Explain the difference between abstract class and interface in c++?
How do you declare A pointer to function which receives an int pointer and returns a float pointer
Define pure virtual function?