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 |
difference between w2k and win xp....
what is active dirctory?
There are prime factors of two numbers a and b , write a program using this prime factors whether a is divisible by b?
how 2 write a program of this pattern usin for loop?? 1 2 3 4 5 6 7 8 9 10
sir/medam i had completed my B-TECH(CSE)2011 with 61%.i have to go USA for futhure studies.i dnt know what is steps for do futhure studies in USA so could you please tell me
true and false 1. The jawa source code can be created in a notepad editor. 2. The value of 111% 13 is 3.
What is the use of generics? when was it added to jdk?
can u give me the information about the questions asked by the bally in campus
Hi dost here Alok Kumar please send question pattern for NIC at godinall.kumar1@gmail.com or alok.iitb07@gmail.com
the gravity variation on to the earth depends upon ......... what factors .. how they effect the all other parameters ........in case of body moving in up wards and as well as downwards.........
Please send us a brief description why do you think you can fit to the role
WHAT HAPPEN WHEN ANY SPINDLE RUN OVER 10 MM HEIGHT ABOVE BOLSTAR IN RING SPINNING FRAME
Civil Engineering (5086)
Mechanical Engineering (4453)
Electrical Engineering (16638)
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)