3- Write a program to find larger and smaller of the two
numbers.

Answer Posted / jack

# include <conio.h>
# include <iostream.h>
void main()
{
clrscr();
int c1,c2;
cout<<"/n ENTER VALUES OF C1 AND C2">>;
cin<<%%d%d,&c1,&c2>>;
if c1>c2
print("c1 is greater")
else
print("c2 is greater and c1 is smaller")
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the effects after calling the delete this operator ?

807


Is java a c++?

774


What is near, far and huge pointers? How many bytes are occupied by them?

886


What are the uses of c++ in the real world?

776


What do you mean by vtable and vptr in c++?

812


List the types of polymorphism in c++?

845


Explain register storage specifier.

790


How a new element can be added or pushed in a stack?

785


What data encapsulation is in c++?

778


How do I make turbo c++ full screen?

794


write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

2044


What is the use of volatile variable?

827


what is Loop function? What are different types of Loops?

900


What are formatting flags in ios class?

841


Which bit wise operator is suitable for checking whether a particular bit is on or off?

808