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 is the height of tree if leaf node is at level 3. please explain

2090


Explain what does it mean when a pointer is used in an if statement?

1006


Is there any data type in c with variable size?

1036


Why is not a pointer null after calling free?

973


There seem to be a few missing operators ..

1007


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

1230


Differentiate fundamental data types and derived data types in C.

987


What are file streams?

968


Explain how are 16- and 32-bit numbers stored?

1210


Is c still used?

1000


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1955


Explain how can I right-justify a string?

996


How can I get the current date or time of day in a c program?

1168


Describe dynamic data structure in c programming language?

1043


What is wild pointer in c with example?

1021