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

How can I find the modification date and time of a file?

1087


What is d scanf?

1099


How do you define a string?

1112


Who developed c language?

1107


What are the benefits of organizational structure?

1031


How many loops are there in c?

1121


What is the default value of local and global variables in c?

1056


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2587


What is build process in c?

1166


How can I trap or ignore keyboard interrupts like control-c?

1075


List the variables are used for writing doubly linked list program.

2041


Is c call by value?

1028


What is a char in c?

1005


What is scope and lifetime of a variable in c?

1086


What is the use of f in c?

988