write a program for input is 56 output will be 5+6=10?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a progremme using function 0f prime no.?

1399


What is the mistake in the following program segment ? f() { int a; void c; f2(&c,&a);}

3422


what is the differences between DTD's and XML schema?

1548


how to send request to the direct server rather than proxy server

1486


i have applied for junior engg. signal II please send me questions papers for it

1498






what is the definition(body) of a default constructor in c++?

1478


wht is difference b/ osi & tcp/ip model

1553


Write a program in ā€˜Cā€™ language that will perform the following operation on static stack. 1. push 2. pop 3. Display 4. Exit Create separate functions for each operation. The push() should accept one argument of structure type and will not return any thing. The pop() function will not receive any argument & return structure type value. The stack & top must be declare as external variable. Each element of stack will contain the following information Roll No, Std Name, Course. Use do-while loop & switch case for generating the above menu. The format of the output should is given below: S.No. Roll No. Student Name Course 1 cse01 Anil Singh B.Tech

1498


Explain power?

884


what is isolator

1582


Write a program to input 10 elements in an array and seperate even and odd numbers, positive and negative between them ?

1395


when load increase in generator in island mode, why turbine rpm is reduced

3063


Write a c pgm to print the letter as per given condition i.e.. if u give 4 out put should b 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4

1530


Hi i want some previous interview questions and answers for KVB Bank.

2138


i want to know how can i divide the bandwidth among two computers.say i have a connection of 256 kbps dsl connection. i have a switch.now i want to divide this 256 kbps in two 128,128 equal connections.so that both of us can work on our separate 128 speed

1561