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

Without Computer networks, Computers will be half the use. Comment.

2353


Write a program of advanced Fibonacci series.

1203


What is meant by preprocessor in c?

1071


How many bytes are occupied by near, far and huge pointers (dos)?

1216


What are keywords in c with examples?

1147


Write a program to reverse a linked list in c.

1179


Why we use conio h in c?

1301


What is typedf?

1163


What is difference between && and & in c?

1157


How do I swap bytes?

1120


What is c token?

1122


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

1137


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

3602


What are the two types of functions in c?

1057


What are the disadvantages of a shell structure?

1420