write a program for input is 56 output will be 5+6=10?
Answer Posted / saranya
#include<stdio.h>
#include<conio.h>
main()
{
int n,a,b=0;
clrscr();
printf("Enter the n value");
scanf("%d",&n);
while(n!=0)
{
a=n%10;
b=b+a;
n=n/10;
}
printf("Result is %d",b);
getch();
}
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Key difference between ip10 and ip20 of ceragon equipment?
Box 1 cotain odd value X or Y the box 2 =X i.e 7 or 12 box 3= Y has value 19 if X is 7 or 31 if x is 12 get even value X or Y Use any operator steps allowed 3.
what is mean by tranducer
2. A product selected for testing is equally likely to have been produced by one the 6 machines/processes. (i) Determine sample space āSā (ii) What is the probability that the product is from machine 1? (iii) What is the probability that the product is from machine 2 or machine 4? (iv) What is the probability that the product is from both machine 5 and machine 3? (v) What is the probability that the product is not from machine 6? (vi) What is the probability that the product is not from either machine 6 or machine 1?
what is trx?
how to send request to the direct server rather than proxy server
to which generation of prog. languages does ai prog languages belong
Write a regular expression for "Capgemini Services Pvt.Ltd"
write a program for reverse a given string?
Find the maximum stress intensity in the section?
What is your Job Profile in IT feild.
Index of an Array containing 'n' aliment varies from________to_______
is built-in data-type are abstract data-types in java
what is the difference between oracle 8i vs 9i
Can a Student without engineering background appear for GRE means If he did Bachelor of science in Information technology i.e BSc(IT).