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 |
Is flag a keyword in c?
can v write main() { main(); } Is it true?
What are directives in c?
Can you apply link and association interchangeably?
/*program to calculate hra,da in salary if salary less than 10000 then hra15%,da13% otherwise hra20%,da18%/*
Is c is a procedural language?
what is Array?
What is the use of getch ()?
Explain the red-black trees?
How do shell structures work?
Explain what are its uses in c programming?
control 50 devices which has 2 states on and off.using bitwise operator.plz answer it its urgent