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

Why is #define used?

1279


write a c program to find the sum of five entered numbers using an array named number

2144


how to make a scientific calculater ?

2076


How can you determine the size of an allocated portion of memory?

1314


Explain about block scope in c?

1094


what is bit rate & baud rate? plz give wave forms

1982


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1223


Which is an example of a structural homology?

1328


Why clrscr is used in c?

1018


What does s c mean on snapchat?

1116


How can variables be characterized?

2194


What happens if you free a pointer twice?

1087


Explain logical errors? Compare with syntax errors.

1077


What is C language ?

1970


How can I sort more data than will fit in memory?

1115