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 does static variable mean in c language?
objective type quistion
what are the things to be mentioned for the question "Tell me about yourself??
As stated in the job offer notification, is our basic salary of $7,500.00USD, good for you if employed? In case of any eventuality, who is your next of kin?
write a program to reverse a string using recursive function without using str functions.
how to make resume and what should I include in it?
If you were to drill a circular hole in a sheet of metal and then heat the sheet, what would happen to the size of the hole?
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 is static identifier in c language?
what is the limitation of mis(management information system) report?
2 Answers ABS Construction, TATA,
main() { int i = 10; printf(" %d %d %d \n", ++i, i++, ++i); }
how to find out the name of the users who are currently working starting with the same characters in unix os
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)