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
Explain stack & heap objects?
What is lvalue?
Which format specifier is used for printing a pointer value?
What is a manipulative person?
What is the type of 'this' pointer?
Can we specify variable field width in a scanf() format string? If possible how?
What is the use of endl in c++ give an example?
What is a character in c++?
What are smart pointers?
How would you use the functions randomize() and random()?
Define whitespace in C++.
What is the default access level?
What is stack unwinding?
Explain container class.
Explain the difference between c & c++?