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 are disadvantages of pointers?

1042


What is the main purpose of c++?

1065


What is meant by iomanip in c++?

1226


What is the full form of c++?

1357


Can you please explain the difference between overloading and overriding?

1112


Differentiate between an array and a list?

1185


What is c++ coding?

1212


What is namespace & why it is used in c++?

1126


What is namespace std; and what is consists of?

1308


an integer constant must have atleast one a) character b) digit c) decimal point

1037


What are the extraction and insertion operators in c++? Explain with examples.

1205


What is size_type?

1067


Which is the best c++ software?

1105


What is token c++?

1034


What can c++ be used for?

1108