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...

Print the foll in C...eg when n=5 the o/p must b
+ +
+ + + +
+ + + + +
+ + + +
+ +

Answer Posted / ataraxic

char *m[] = { "+ +", "++ ++", "+++++" };
for (i=1; i <= 5; i++)
printf("%s\n", m[5%i]);

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain union.

1238


write a program to create a sparse matrix using dynamic memory allocation.

4958


Are the outer parentheses in return statements really optional?

1162


Do you know the use of fflush() function?

1109


int far *near * p; means

3623


Why is struct padding needed?

1162


How to Throw some light on the splay trees?

1107


program for reversing a selected line word by word when multiple lines are given without using strrev

2541


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1149


Write a program to print numbers from 1 to 100 without using loop in c?

1142


Why is c so important?

1109


Write a code to generate a series where the next element is the sum of last k terms.

1294


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

1113


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1651


Which type of language is c?

1129