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
What is the basic structure of a c++ program?
What is the latest c++ version?
Can circle be called an ellipse?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
What is the outcome of cout< a) 16 b) 17 c) 16.5
What is using namespace std in cpp?
Explain the difference between abstract class and interface in c++?
What is operators in c++?
Do vectors start at 0?
What is set in c++?
What do you mean by early binding?
How can I improve my c++ skills?
Does there exist any other function which can be used to convert an integer or a float to a string?
What do you mean by ‘void’ return type?
Explain the uses of static class data?