write a program for input is 56 output will be 5+6=10?
Answers were Sorted based on User's Feedback
Answer / mani kandan.s
#include<stdio.h>
#include<conio.h>
void main()
{
int n,a,b;
clrscr();
printf("Enter the n value");
scanf("%d",&n);
a=n%10;
b=n/10;
printf("Result is=%d",a+b);
getch();
}
Is This Answer Correct ? | 14 Yes | 3 No |
Answer / 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 |
What is the filters function?
what is the difference between load bearing and non load bearing walls
can oracle driver be directly connected with odbc driver??
Please send the details and fee for Intools training course..I would like to do the course in second week of jUNE 2010.
Q1 Design a webpage for a hotel which displays all the information of the hotel such as rooms available, facilities, and packages along with rate list. Apply the different tags available to give it a good style.
What is the fallacy in the following program segment ? int *f1() { int a=5; return &a; } f() int *b=f1() int c=*b; }
what is a Additional domain ? what is a child domain?
draw diagram of earthings
Given a set of numbers like 1,2,5,4,1,2,1,7 find the number of faults using LRU.
WHAT THE DIFFERENCE BETWEEN JCB 3DX & 3D?
what is the formula/ ratio for hollow block? considering to a 40 kgs of portland cement.
difference between w2k and win xp....