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 |
when there is a parametrized constructor, and an object is created with no arguments. will the default constructor be called?
how am i supposed to convert a class program in C++ to Matlab? Do i also need to make classes in matlab too or I can do it without making classes???Can somebody help....
Why DG Set manufacturers do not give options for alternative fuels. They even do not allow to change at the cost of custmers.
is the meter head is same as back pressure?
Explain work?
can anybody send me the technical papers of hewitt associates pls...I cleared aps n GD n has only less time for technical round?
when will the group1&group2 exams will be held
What is the distance between earthing pit and equipment?
what is locative information on web.........?
I attended an interview with CGI last week for network engineer and here are the questions that might help you guys who are going to attend interviews.
i want a richdatatable to be displayed only when a list has some value in the bean, and a datatable with header only if the list is empty. And i want the datatable to be printed only when ajax button is clicked??
what the bridge id of any switches