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

Tell me difference between constant pointer and pointer to a constant.

1186


Which programming language should I learn first?

1085


Define pure virtual function?

977


What is #include iostream in c++?

1056


Write about the retrieval of n number of objects during the process of delete[]p?

1018


What is decltype c++?

991


What is data structure in c++?

1142


What is auto type c++?

1117


Is it possible to provide default values while overloading a binary operator?

1265


What data encapsulation is in c++?

1140


What does I ++ mean in c++?

1096


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

1027


What is using namespace std in cpp?

1148


Define private, protected and public access control.

1113


Can we get the value of ios format flags?

1131