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 requires 45 minutes:
Find the logic below:
int time;
for ( int i=0,SpreadRate=1,Ppl=0;Ppl<=768;i++)
{
Ppl = Ppl + SpreadRate;
time = 5 * i;
SpreadRate = SpreadRate * 2;

}
printf("time in min %d \r\n"),time);

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why C language is a procedural language?

1051


Write a program that accept anumber in words

1768


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

977


Can you please explain the difference between strcpy() and memcpy() function?

1083


What are derived data types in c?

1098


What are two dimensional arrays alternatively called as?

1198


What is the difference between abs() and fabs() functions?

1144


How can I remove the trailing spaces from a string?

1087


What is function what are the types of function?

1007


What is the value of uninitialized variable in c?

1044


What do you mean by invalid pointer arithmetic?

1095


How can I read and write comma-delimited text?

1081


Which is best linux os?

1033


What is a sequential access file?

1188


What is void c?

1111