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
Explain how do you view the path?
What are the string functions? List some string functions available in c.
Explain modulus operator.
What is malloc and calloc?
what is uses of .net
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
What is the use of in c?
Why isnt any of this standardized in c?
What is the heap in c?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
What does %d do in c?
How can I use a preprocessorif expression to ?
what are bit fields? What is the use of bit fields in a structure declaration?
What is nested structure?
Why is it that not all header files are declared in every C program?