3- Write a program to find larger and smaller of the two
numbers.
Answer Posted / shubhashree sahoo
# 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 ? | 6 Yes | 1 No |
Post New Answer View All Answers
How do c++ struct differs from the c++ class?
What is a multimap c++?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
Is c++ built on c?
What do you mean by storage classes?
What is the difference between a template and a macro?
How do I run a program in notepad ++?
Explain rethrowing exceptions with an example?
Distinguish between a # include and #define.
What happens when the extern "c" char func (char*,waste) executes?
Explain the static member function.
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
Write some differences between an external iterator and an internal iterator?