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

Write a program to find the reverse Fibonacci series starting from N.

687


what are the decision making statements in C++? Explain if statement with an example?

748


What is exception handling? Does c++ support exception handling?

679


What is a c++ vector?

691


What is name hiding in c++?

733






what is the difference between overloading & overriding? give example.

667


What type of question are asked in GE code writing test based on c++ data structures and pointers?

3595


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

661


what are the iterator and generic algorithms.

1556


How many namespaces are there in c++?

642


What is a multimap c++?

772


Should the this pointer can be used in the constructor?

641


What are the important differences between c++ and java?

706


What is the role of C++ shorthand's?

780


Should I learn c++ c?

703