Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is #include iomanip?

969


Is java as fast as c++?

1078


What is difference between class and structure in c++?

1155


Explain the concept of friend function in c++?

1070


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2545


What's the best free c++ profiler for windows?

1043


Write about the use of the virtual destructor?

980


Why is it necessary to use a reference in the argument to the copy constructor?

1085


When are exception objects created?

1042


What is the keyword auto for?

1007


What is c++ used for in games?

1119


What are static type checking?

1023


Mention the ways in which parameterized can be invoked. Give an example of each.

1023


What is the main purpose of overloading operators?

1092


What is the hardest coding language to learn?

1010