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

In the village called TALAJA, only three TV channels are available - Moon Plus, Mony and Mee TV. Out of 4000 TV viewers in the village, 1500 watch Moon TV, 2000 watch Mony and 2500 watch Mee TV. Amongst these, 500 viewers watch Moon Plus and Mony, 800 watch Moon Plus and Mee TV, and 1000 watch Mony and Mee TV. How many viewers watch all three channels?

2 Answers  


Who ever has red card says truth black card says false 2 guys a and b a says "iam b i have red card " who is he wat card he has thats all from apti i know

11 Answers   Patni,


A cube is divided into 125 pieces.. then four columns are removed then coloured all side black.. i) how many 0 side painted cubes? ii) how many 1 side painted cubes? iii) how many 2 side painted cubes? iV) how many 3 side painted cubes? V) how many 4 side painted cubes?

7 Answers   Stairway Engineering, Tata Elxsi,


how do i improve my logical questions. is there any website?

1 Answers  


In how many iterations can we find one coin that is heavier than the others out of 8 coins?and how ?please reply

6 Answers   Symphony,






what makes a road as abroad?

10 Answers  


All of the tickets for 2 music concerts, X and Y, were either purchased or given away, and the ratio of X tickets to Y was 2 to 1. Of the total number of X tickets and Y tickets, what percentage was purchased? 1) The total number of X tickets and Y tickets, is 240. 2) Of the X tickets, exactly 60% were purchased, and of the Y tickets, exactly 80% were purchased. a) if statement (1) ALONE is sufficient, but statement (2) alone is not sufficient to answer the question. b) if statement (2) ALONE is sufficient, but statement (1) alone is not sufficient to answer the question. c) if BOTH statements (1) and (2) TOGETHER are sufficient to answer the question asked, but NEITHER statement ALONE is sufficient. d) if EACH statement ALONE is sufficient to answer the question asked. e) if statements (1) and (2) TOGETHER are NOT sufficient to answer the question asked, and additional data specific to the problem are needed.

4 Answers   Microsoft,


There are two types of gangs one gang members always say truth others are liers u come accross a&b 1.a says "atleast one of us lier" a&b belongs to which gang??

8 Answers   Patni,


(9^-2)*81*(5/6)

3 Answers  


In Mr. Mehta's family, there are one grandfather, one grandmother, two fathers, two mothers, one father-in-law, one mother-in-law, four children, three grandchildren, one brother, two sisters, two sons, two daughters and one daughter-in-law. How many members are there in Mr. Mehta's family? Give minimal possible answer.

2 Answers  


Three members are hunting in a forest.While crossing a streem cartridges of two of them gets wetted up.Then the third person decides his cartidges equally. After 4 shots of each person, total cartridges remaining are equal to what each had initially after sharing.How many total cartridges they initially they shared?

0 Answers   Infosys,


There are 70 employees working with BrainVista of which 30 are females. Also, ? 30 employees are married ? 24 employees are above 25 years of age ? 19 married employees are above 25 years, of which 7 are males ? 12 males are above 25 years of age ? 15 males are married. How many unmarried females are there and how many of them are above 25?

3 Answers  


Categories