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

Answers were Sorted based on User's Feedback



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

Answer / nehel

System.out.println("{{{}}}");

Is This Answer Correct ?    71 Yes 2 No

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

Answer / ankita shukla

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("{{{}}}");
getch();
}

Is This Answer Correct ?    24 Yes 2 No

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

Answer / jaydeep

#include<iostream>
using namespace std;

class CSomeClass
{
public:
CSomeClass()
{
cout<<"{";
}
~CSomeClass()
{
cout<<"}";
}
};

int main()
{
CSomeClass SomeObjects[3];
return 0;
}

Is This Answer Correct ?    16 Yes 0 No

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

Answer / siddarth pillai

public class TestRec
{
public static void main(String args[])
{
String Shape = " ";
int num = 3;
int count = 0;

Display(num,count,Shape);
}

public static void Display(int num,int count,String Shape)
{
if(count < num)
{
Shape = "{"+Shape+"}";
count++;
Display(num,count,Shape);

}
else
System.out.println(Shape);

}

}

Is This Answer Correct ?    5 Yes 1 No

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

Answer / 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

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

Answer / guest

yes

Is This Answer Correct ?    9 Yes 12 No

Post New Answer

More Puzzles Interview Questions

Ship is 180 miles away from shore. At that time a plane started from shore to pass some information to the ship with 10 times velocity of ship's velocity. At what distance from shore they will meat?

0 Answers   Infosys,


My friend collects antique stamps. She purchased two, but found that she needed to raise money urgently. So she sold them for Rs. 8000 each. On one she made 20% and on the other she lost 20%. How much did she gain or lose in the entire transaction?

3 Answers   Wipro,


Jack and Jill are playing cards for a stake of $1 a game. At the end of the evening, Jack has won 3 games and Jill has won $3. How many games did they play?

2 Answers  


suppose you build a tower interlocking cubes that is 99 cubes high. And suppose you have to paint each square on the tower. How many squares would you have to paint?

9 Answers  


do you have reference list?

1 Answers   Qatar Airlines,






X is a 6 letter word 1 2 and 5 6 letters are the same 3 4 is a day 1 2 5 6 is go away 1 2 3 6 is fat and X is an international celebrity .. What is X ?

6 Answers   Infosys,


if (x-a) power(degree) is 1 and (x-a)(x-b) power is 2 then (x-a)(x-b).........upto ...(x-z) power(degree) is how much?

9 Answers   BA Continnum Solutions, HCL, Wipro,


A cow is standing 5 feet from the middle of the bridge .A train is at a distance of 2 times length of the bridge from direction in which cow is nearer to end of the bridge is coming at a speed of 90 miles/hour.If cow moves towards train it will be saved by 1 foot.If cow moves away from train it will be hit by three inches of cow (i)Find length of bridge (ii)Find cows speed

1 Answers   eLitmus, Infosys, TCS,


1 apple = 6 rupees(indian currency)1 orange 3 rupees and 1 lemon 10 paise. i wan to buy 100 fruits(above mentioned)for 100 rupees. tell me how much quantity of apple orange and lemon will be buy for 100 rupees. this is serious qstn.help me plzz????????

13 Answers   Broadridge,


There were N stations on a railroad. After adding X stations 46 additional tickets have to be printed. Find N and X.

2 Answers  


Find a number which ends with digit 2 such that when you cut this last digit and paste it in the front of the number, the new number value is double that of original.

4 Answers  


If a monkey climbes 3mts in 1hr and slips back 2mts. What the time taken to climb 20mts .

13 Answers  


Categories