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

What are the advantages and disadvantages of a heap?

1211


What is a struct c#?

1049


What are structures and unions? State differencves between them.

1174


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2642


What is #error and use of it?

1278


Explain the difference between malloc() and calloc() in c?

1048


Explain what will the preprocessor do for a program?

1064


What is difference between %d and %i in c?

1236


Tell me with an example the self-referential structure?

1012


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1295


Explain the difference between malloc() and calloc() function?

1050


What are the various types of control structures in programming?

1059


How can I swap two values without using a temporary?

1106


What are enumerated types?

1188


Is c++ based on c?

1070