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

25. It takes five minutes to pass a rumour from one
person to two other persons. The tree of rumour continues.
Find how many minutes does it take spread the rumour to 768
persons. ?

Answer Posted / pradeep

// It's a combination of 1+2+4+8+16+.... and each intervl
takes 5 minutes.
so use the below logic to find out the ryt answer

int time;
for ( int i=0,sum=0;sum<=768;i++)
{
sum = sum+(2*i);
time = 5*i;
}
printf("time in min %d \r\n"),time);

correct answer is 140 minutes [ nothng but 2 hours 20 min]

return TRUE;

Is This Answer Correct ?    4 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the valid places to have keyword “break”?

1147


Is a pointer a kind of array?

1250


What are the different file extensions involved when programming in C?

1346


What is a built-in function in C?

1670


What is structure and union in c?

1208


what is the significance of static storage class specifier?

2345


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1962


Hai what is the different types of versions and their differences

1978


how can use subset in c program and give more example

2049


Write a program to swap two numbers without using the third variable?

1120


What is c++ used for today?

1155


When should the register modifier be used? Does it really help?

1009


What does struct node * mean?

1070


Explain threaded binary trees?

1215


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3442