Without using any loops print {{{}}} (u cant use
goto,for,while etc..).

Answer Posted / jeevan

Use recursive function for this

in example example user has entered 3
(Code is written in VB)
Num = 3
Itt = 0
ListPR = ""
Function PrintPra(ListPR as String,Itt as integer)
if Itt < 3 then
ListPR = "{" & ListPR "}"
itt = itt +1
'Call the Function again
PrintPra(ListPR,Itt)
else
Print ListPR
end
End if
End function

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In a soap company a soap is manufactured with 11 parts. For making one soap you will get 1 part as crap. At the end of the day u have 251 such scraps. From that how many soaps can be manufactured?

1090


why should we hire the others waiting to be interviewed?

2460


At 6o'clock ,a watch strokes 6 times.The time between first and last is 30secs.At midnight 12o' clock how much time for all strokes?

1030


sir i need generalKnowledge previous questions for rrb secunderabad goods guard exam

2255


how soon can you travel down to start your new job?

2251






P pages read in d mins after day p+1 pages read in d+1 mins last day 379 pages done in 317 mins find p+4

2032


foot is related to man in the same way hoof is related to...........

1970


There is puzzle with the word "CONSTANTINE" and exactly don't know the question if anybody knows the Q&A plz send it ahmed.basha.munna@gmail.com

2486


4_4_4_4=22 use all sign of maths

958


what three specific job positions do you target from qatar airways group u.k?

2695


what job position/s are you currently holding with your current employer?

2701


What is the syllabus for numerical aptitude exam to be held by the United bank of India. Plz inform me through email. Thanking You!

2475


In rail road there are some stations. Each station should have tickets to all other stations.If they add some new stations they need 46 more tickets.How many stations are there before and after adding the stations?

787


Wo kay chej hi jo saal may 1 baar aata hai months may 2 baar aata hai weeks may 4 baar aata hai or din may 6 baar

1507


sir i need catholic syrian bank previous question papers fully. it will be helpful for me to greater extend .please do the needful to me.

2903