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

Write the control statements in C language

1208


What are the difference between a free-standing and a hosted environment?

1292


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

2157


How to declare a variable?

1009


What are identifiers and keywords in c?

1106


Write a program to print ASCII code for a given digit.

1095


Is c is a high level language?

1194


What is struct node in c?

1076


Write a program to find factorial of a number using recursive function.

1125


What is data structure in c and its types?

1071


What is malloc and calloc?

1058


What is the difference between int main and void main?

1051


What is keyword with example?

1068


Write a program which returns the first non repetitive character in the string?

1127


Do you know what are bitwise shift operators in c programming?

1105