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

What are the two types of structure?

1092


please send me the code for multiplying sparse matrix using c

2178


How will you delete a node in DLL?

1295


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

1096


What standard functions are available to manipulate strings?

1156


Why does notstrcat(string, "!");Work?

1149


What does & mean in scanf?

1111


Why is c called a mid-level programming language?

1208


Can we assign integer value to char in c?

1254


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1166


Explain enumerated types.

1038


Why do we write return 0 in c?

1065


What are header files and what are its uses in C programming?

1243


Why is structure important for a child?

1105


Can you define which header file to include at compile time?

1022