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
Write a program to find the reverse Fibonacci series starting from N.
what are the decision making statements in C++? Explain if statement with an example?
What is exception handling? Does c++ support exception handling?
What is a c++ vector?
What is name hiding in c++?
what is the difference between overloading & overriding? give example.
What type of question are asked in GE code writing test based on c++ data structures and pointers?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
what are the iterator and generic algorithms.
How many namespaces are there in c++?
What is a multimap c++?
Should the this pointer can be used in the constructor?
What are the important differences between c++ and java?
What is the role of C++ shorthand's?
Should I learn c++ c?