3- Write a program to find larger and smaller of the two
numbers.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / laxman kanhere
# 1 # include <conio.h>
# include <iostream.h>
void main()
{
clrscr();
int c1,c2;
cout<<"/n ENTER VALUES OF C1 AND C2";
cin>>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 |
Answer / 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 |
Answer / tcs
#include<iostram.h>
void main()
{
int a,b,c;
cout<<"enter two num";
cin>>a>>b;
if(a>b)
{
cout<<"a is greater"<<a;
}
else
{
cout<<"a is small"<<a;
}
}
Is This Answer Correct ? | 1 Yes | 1 No |
What are special characters c++?
What is the difference between while and do while loop?
How many types of casting are there in C++? When is a dynamic cast,static_cast,reinterpret cast used?
Will the inline function be compiled as the inline function always? Justify.
Is java as fast as c++?
What is isdigit c++?
What are the basics of local (auto) objects?
What are pointer-to-members? Explain.
Keyword mean in declaration?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
Explain terminate() and unexpected() function?
What is the Diffrence between a "assignment operator" and a "copy constructor"?