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 are the difference between grounding,earthing and neutral???????....
What are the frequently asked technical engineer ques?
How can write a C program that shows All the prime number?
when there is a parametrized constructor, and an object is created with no arguments. will the default constructor be called?
How do an incremental process model and certification work together to produce high quality software? In your own words, describe the intent of certification in the clean room software engineering context.
anyone send me aptitude and technical placement paper of Hewitt
Always declare destructors to be virtual"?????? why this is so needed?????
System Not Getting Shut down Through Software Auttomatically It Will Restart wat is the Problem?
2 ships are wardroom light house one side at 30 degree and other ship other side at 45 degree. If light house has 100 m, find distance of boat from light house. and also find distance of each boat from light house
What is the distance between earthing pit and equipment?
When a new build comes what is the first step taken by a tester in testing
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.
Civil Engineering (5086)
Mechanical Engineering (4456)
Electrical Engineering (16639)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)