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 a program in c to find out the sum of digits of a
number.but here is a condition that compiler sums the value
from left to right....not right to left..

Answer Posted / sorab aggarwal

#include<conio.h>
#include<stdio.h>
void main()
{
int a,b,c,d,e;
a=10;
b=20;
c=30;
d=40;
e=(((a+b)+c)+d);
printf("the sum of no. is ::",e);
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c# a good language?

963


What is an auto keyword in c?

1045


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2694


ATM machine and railway reservation class/object diagram

5192


Explain how do you determine a file’s attributes?

999


Write a c program to demonstrate character and string constants?

2114


what are bit fields? What is the use of bit fields in a structure declaration?

2045


Why we write conio h in c?

964


What is assignment operator?

1000


What is the size of enum in c?

1059


When c language was developed?

1011


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2121


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

1055


What is the function of this pointer?

1219


Why isnt there a numbered, multi-level break statement to break out

995