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
Why is #define used?
write a c program to find the sum of five entered numbers using an array named number
how to make a scientific calculater ?
How can you determine the size of an allocated portion of memory?
Explain about block scope in c?
what is bit rate & baud rate? plz give wave forms
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Which is an example of a structural homology?
Why clrscr is used in c?
What does s c mean on snapchat?
How can variables be characterized?
What happens if you free a pointer twice?
Explain logical errors? Compare with syntax errors.
What is C language ?
How can I sort more data than will fit in memory?