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 / 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 |
Why ca not I do something like this?
write a program to copy a string without using a string?
What are the advantages and disadvantages of a heap?
cavium networks written test pattern ..
Who invented b language?
how to copy a string without using c function
What is the most efficient way to count the number of bits which are set in a value?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
What is c mainly used for?
What is an lvalue?
Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).
what is a headerfile?and what will be a program without it explain nan example?