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 a computer without a hard disk called as technically ?
How I can write a java program output the following 1+2+4+7+......N
explain various problem solving statagis
what are the steps u follow to create an custom idoc program in which environment u create the program?
what is a pointer in c language?
What are the differences between 1 dimensional RAM and 2 dimensional RAM?
performance test required for a automatic bank teller?
find the net id and host id of the following IPV4 117.34.3.8 and 132.57.8.6
0 Answers Green University of Bangladesh,
what is the class of generator A b & c
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 meant by VSWR?
what is buffer solution?
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)