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 buffering in c++?

1075


What is helper in c++?

1102


Are strings mutable in c++?

1148


What is a float in c++?

997


Tell me what are static member functions?

1096


What is a Default constructor?

1627


What is pure virtual function?

1079


What are the two types of comments?

1019


Program to check whether a word is a sub-string or not of a string typed

2051


How can you create a virtual copy constructor?

1104


Explain the register storage classes in c++.

1196


Are vectors faster than arrays?

1016


Explain the difference between abstract class and interface in c++?

1005


How do you declare A pointer to function which receives an int pointer and returns a float pointer

1239


Define pure virtual function?

1004