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

Write c-code for 5+55+555+5555+55555+555555+5555555.
Output will be it's answer...

Answer Posted / vinod

main()
{
long int f=0,ans=0;
for(int i=0;i<7;i++)
{
f=f*10+5;
ans+=f;
}
printf("%ld",ans);
}

Is This Answer Correct ?    46 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1127


Can you return null in c?

1229


Explain what is the difference between functions abs() and fabs()?

1261


What are the restrictions of a modulus operator?

1164


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

1140


main() { printf("hello"); fork(); }

1249


What is the scope of local variable in c?

1203


How do I round numbers?

1054


Is c is a middle level language?

1126


What are static variables in c?

1130


What is return in c programming?

1022


What are the different types of control structures?

1083


How can you tell whether two strings are the same?

1314


What are the different properties of variable number of arguments?

1204


What is return type in c?

1191