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...


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

day before yesterday i was 25 years , next year iam 28,when is my birthday? which day is today?

8 Answers  


There are 9 coins. Out of which one is odd one i.e weight is less or more. How many iterations of weighing are required to find odd coin?

4 Answers   Accenture,


prove that 1 + 1 = 1. use any logic, any method,any algorithm.. (its not a binary addition or logical OR gate).

7 Answers  


Find the smallest number such that if its rightmost digit is placed at its left end, the new number so formed is precisely 50% larger than the original number.

9 Answers   CTS, Google,


Gomzi has 3 timepieces in his house - a wall clock, an alarm clock and a wristwatch. The wristwatch is always accurate, whereas the wall clock gains 2 minutes everyday and the alarm clock loses 2 minutes everyday. At exactly midnight last night, all three watches were showing the same time. If today is 25 July 2003, then on which date all three clocks will show the same time again?

4 Answers  


if u love someone u can arrange these 10 letters in 5 words I H O M U R E Y N A

41 Answers   DQ Entertainment, Era Infra Engineering, Infosys,


You have 14 apples. Your Friend Marge takes away 3 and gives you 2. You drop 7 but pick up 4. Bret takes 4 and gives 5. You take one from Marge and give it to Bret in exchange for 3 more. You give those 3 to Marge and she gives you an apple and an orange. Frank comes and takes the apple Marge gave you and gives you a pear. You give the pear to Bret in exchange for an apple. Frank then takes an apple from Marge, gives it to Bret for an orange, gives you the orange for an apple. How many pears do you have?

5 Answers  


Four prisoners escape from a prison. The prisoners, Mr. East, Mr. West, Mr. South, Mr. North head towards different directions after escaping. The following information of their escape was supplied: ? The escape routes were North Road, South Road, East Road and West Road ? None of the prisoners took the road which was their namesake ? Mr. East did not take the South Road ? Mr.West did not the South Road ? The West Road was not taken by Mr. East What road did each of the prisoners take to make their escape

2 Answers   Infosys,


A man went into a fast food restaurant and ate a meal costing Rs. 105, giving the accountant a Rs. 500 note. He kept the change, came back a few minutes later and had some food packed for his girl friend. He gave the accountant a Rs. 100 note and received Rs. 20 in change. Later the bank told the accountant that both the Rs. 500 and the Rs. 100 notes were counterfeit. How much money did the restaurant lose? Ignore the profit of the food restaurant.

23 Answers   TCS,


rambo works in the security section of a bank.everybody in the company is either an IT person or a finance person or both.the assignment that rambo is currently working on has five people from finance and three people from IT,including him.of the 26 finance people in his department,a total of 16 are in his section.of the 18 IT people in his department,10 are not in rambo section.there is nobody in rambo section who is both a finance person and an IT person.fifteen people in his department do not belong to his section... 1)how many IT people are there in rambo's department who are not a finance person and are not in rambo's section? A)1 B)3 C)5 D)8 2)what number finance people in rambo's department are not in his section? A)26 B)10 C)21 D)16 3) what is the total number of people who come under rambo's department? A)51 B)45 C)40 D)39 4)how many people in the department are both IT and finance persons? A)0 B)5 C)3 D)7 i face this question

2 Answers   CTS,


An anthropologist discovers an isolated tribe whose written alphabet contains only six letters (call the letters A, B, C, D, E and F). The tribe has a taboo against using the same letter twice in the same word. It's never done. If each different sequence of letters constitues a different word in the language, what is the maximum number of six-letter words that the language can employ?

1 Answers  


Four persons A, B, C and D are playing cards.Each person has one card, laid down on the table below him, which has two different colours on either side. The colours visible on the table are Red, Green, Red and Blue. They see the color on the reverse side and give the following

4 Answers   HP, Infosys, TCS, Wipro,


Categories