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
Without Computer networks, Computers will be half the use. Comment.
Write a program of advanced Fibonacci series.
What is meant by preprocessor in c?
How many bytes are occupied by near, far and huge pointers (dos)?
What are keywords in c with examples?
Write a program to reverse a linked list in c.
Why we use conio h in c?
What is typedf?
What is difference between && and & in c?
How do I swap bytes?
What is c token?
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
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
What are the two types of functions in c?
What are the disadvantages of a shell structure?