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 / ashish

#include<stdio.h>
#include<math.h>
void main()
{ long int f=0,ans=0,i;
clrscr();
for(i=0;i<7;i++)
{
f=f*10+5;
ans+=f;
}
printf("%ld",ans);
getch();
}

Is This Answer Correct ?    19 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do the functions atoi(), itoa() and gcvt() do?

1135


what is the difference between 123 and 0123 in c?

1155


Is file a keyword in c?

884


Why c language?

1005


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1073


what is the difference between class and unio?

2304


What are void pointers in c?

963


Explain how to reverse singly link list.

1071


What is the difference between mpi and openmp?

1216


What does struct node * mean?

964


Why can’t constant values be used to define an array’s initial size?

1323


How does pointer work in c?

1070


How can I insert or delete a line (or record) in the middle of a file?

975


Stimulate calculator using Switch-case-default statement for two numbers

2921


Are pointers integers in c?

1027