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 |
Please send us a brief description why do you think you can fit to the role
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?
sir now i am studying B.Tech final year so now i am eligible for writing group 1 and 2 or not?
why we use conio.h in c programming?
what things abutsbi
0 Answers State Bank Of India SBI,
what are the efficient way or solutions to avoid ABEND=S04C.
can any one give 10 ways to create a file in unix...???? through command prompt....
Can have i call constructor in interface?
Index of an Array containing 'n' aliment varies from________to_______
hi friends i am b-tech in computer science having interview of State bank of india clerk day on 30 th april. I want to know the answer of question:"you r B.tech in C.S. why do u want to become a bank clerk?" please help.Its my humble request.
0 Answers State Bank Of India SBI,
what the bridge id of any switches
Client server applications